AcediaDocumentation

getconnections

Lists inspection objects for connections on an engine signal.

Each entry can expose Enabled, LuaConnection, ForeignState, Function and Thread, plus Fire, Defer, Disconnect, Disable and Enable methods. This is an inspection snapshot; disconnected entries may disappear on a later read.

getconnections(signal: RBXScriptSignal): {Connection}

Parameters

ParameterTypeDescription
signalRBXScriptSignalEngine event to inspect.

Related objects: Connection, Signal.

Example

local event = Instance.new("BindableEvent")
local connection = event.Event:Connect(function() print("example") end)
for _, entry in ipairs(getconnections(event.Event)) do print(entry.Enabled) end
connection:Disconnect()
event:Destroy()

Example output

true

Aliases: get_signal_cons, getsignals, getconnection.

On this page