Skip to content
Saiko

getconnections

Returns a Connection object for every listener attached to a signal, each exposing Function, Thread, Enabled, Fire, Defer, Disconnect, Disable and Enable.

Signature

luau
getconnections(signal: RBXScriptSignal): { Connection }

Parameters

signalRBXScriptSignal

The event to inspect.

Returns

{ Connection }

Example

luau
for _, connection in getconnections(game.Players.LocalPlayer.Idled) do
    connection:Disable()
end