Connection
Inspection records returned by getconnections.
These records describe engine signal nodes; they differ from ordinary RBXScriptConnection objects.
local event = Instance.new("BindableEvent")
local bound = event.Event:Connect(function(value) print(value) end)
for _, entry in ipairs(getconnections(event.Event)) do
if entry.LuaConnection and not entry.ForeignState then entry:Fire("example") end
end
bound:Disconnect()
event:Destroy()Fields
| Member | Type / signature | Meaning |
|---|---|---|
Enabled | boolean | Whether the connection is enabled in the inspection record. |
LuaConnection | boolean | Whether the connection is a Lua callback connection. |
ForeignState | boolean | Whether the callback belongs to another VM. |
Function | function? | Callback when available; a wait entry may use a resumable wrapper. |
Thread | thread? | Associated thread when available. |
Methods
| Member | Type / signature | Meaning |
|---|---|---|
Fire | Fire(...): () | Schedules the live enabled handler through task.spawn. |
Defer | Defer(...): () | Schedules the handler through task.defer. |
Disconnect | Disconnect(): () | Drops the inspected connection. |
Disable | Disable(): () | Disables delivery. |
Enable | Enable(): () | Enables delivery where the connection remains live. |
Use colon syntax to pass the record as self. A stale or disconnected node cannot be revived by retaining its table. Fire and Defer return without running a disabled or stale handler.
