ReferenceSignals

connection:Fire

Invokes one supported connection’s callback directly.

Syntax

connection:Fire(...: any) -> ()

Parameters

ParameterTypeDescription
...anyArguments for this callback.

Description

Obtain connection objects with getconnections. Fields include Function, Thread, Enabled, LuaConnection and ForeignState. Native or foreign-state connections do not expose a local Function or Thread. Fire affects only the chosen callback; it does not raise the whole signal or notify the server.

Example

local event = Instance.new("BindableEvent")
event.Event:Connect(function(value) print(value) end)
local connection = getconnections(event.Event)[1]
connection:Fire("hello")
event:Destroy()

These are Game executor contracts. Check build requirements and session lifetimes before using them.