Yuari
Documentation
Docs/Signals/getconnections

getconnections

Returns the connection objects currently subscribed to a signal.

Syntax

getconnections(signal) -> {RBXScriptConnection}

Parameters

ParameterTypeDescription
signaltableA signal table, such as workspace.ChildAdded, RenderStepped or the result of :GetPropertyChangedSignal.

Returns

TypeDescription
{RBXScriptConnection}Array of live connection objects, including disabled ones.

Description

Each entry is the same kind of connection object that :Connect returns, so it supports :Disconnect(), :Disable(), :Enable() and .Connected.

Connections that were disconnected or replaced are not returned.

Example

for _, conn in ipairs(getconnections(workspace.ChildAdded)) do
    conn:Disable()
end

Notes

  • getconnections(GetPropertyChangedSignal("Name")) — Matches only that property signal.
  • Disabled connections — Stay listed until disconnected.