Signals & connectionsOverview
getconnection
Provides metadata for an individual connection.
Details#
Returns the connection at a one-based index in getconnections(signal), or nil if absent. Indices below 1 raise an error; ordering is not a permanent connection ID.
Examples#
Example
local event = Instance.new("BindableEvent")
local own = event.Event:Connect(print)
local connection = getconnection(event.Event, 1)
print(connection ~= nil)
own:Disconnect()
event:Destroy()