Syntax
getconnections(signal: RBXScriptSignal): {RealConnection}Aliases
getsignalsget_signal_consArguments
| Name | Type | Description |
|---|---|---|
signal | RBXScriptSignal | Signal to inspect. Non-RBXScriptSignal object raises a type error, and a signal without a callable Connect field raises "Signal does not have 'Connect' method". |
Returns
| Name | Type | Description |
|---|---|---|
connections | {RealConnection} | Array table of connection objects. Available fields and methods may include Enabled, Disabled, Function, Thread, Disconnect, Disable, Enable, Fire, and Defer. |
Description
Returns connection objects for an RBXScriptSignal. The first argument must be a valid RBXScriptSignal.
Call it with 1 parameter(s): signal. The argument table explains which values are required and which ones only refine the behavior.
It returns connections ({RealConnection}). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Inspect an RBXScriptSignal and list the wrapped connections Real can expose.
local Players = game:GetService("Players")
for _, connection in ipairs(getconnections(Players.PlayerAdded)) do
print(connection.Enabled, connection.LuaConnection)
end