Yuari
Documentation
Docs/Signals/getconnections

getconnections

Returns connection descriptors with accurate LuaConnection, callback and thread metadata. Aliases: getfriends, get_signal_cons.

Syntax

getconnections(signal: RBXScriptSignal) -> table

Parameters

ParameterTypeDescription
signalRBXScriptSignalThe RBXScriptSignal to inspect or act on.

Returns

TypeDescription
tableA table of connection objects attached to the signal.

Description

getconnections reads the live connection list attached to an RBXScriptSignal and returns connection descriptors for each callback or waiting coroutine.

Each descriptor exposes Connected, Enabled, ForeignState, LuaConnection, Function and Thread, together with Fire, Defer, Disable, Enable and Disconnect. LuaConnection is true for Luau callbacks and signal waits, while ForeignState identifies callbacks owned by another Luau state.

Example

local connections = getconnections(workspace.ChildAdded)
print(#connections)

Notes

  • Aliases: getsignals(signal), get_signal_cons(signal).
  • Signal helpers operate on the live RBXScriptSignal and its connection list.
  • Connection order follows the signal's internal list.
  • Function and Thread are nil when the connection does not expose a callable or coroutine.
  • Disconnected and disabled connections are not returned.
  • One-shot connections are removed after they fire, including through firesignal or a descriptor's Fire.
  • Use getconnection when you only need one entry by index.