Returns the connection objects attached to a signal, including ones connected by foreign Luau states.
Each entry in the returned table is a Connection object - one per live :Connect call on signal at the moment you call. See Connection for the object’s fields and methods.
Most commonly used to break anti-AFK by disabling every handler on Player.Idled.
Parameters
Returns
{Connection} - an array of wrappers, one per live :Connect call on signal. Foreign-state connections are included; their Function and Thread fields read as nil but the methods still work.
Example
In a Roblox game, Player.Idled fires after ~5 minutes of no input - and Roblox kicks you for being AFK for >20 minutes. Disable every connection on the signal so the handler never runs.
Always check parameters and return values when working with this library function.