Signals & connectionsOverview
Connection.Fire
Represents direct dispatch of a connection callback.
Details#
Invokes this connection's available handler immediately with the supplied arguments. It does not broadcast to all connections. Function/Thread metadata may be absent for some connections.
Examples#
Example
local event = Instance.new("BindableEvent")
local own = event.Event:Connect(print)
local connection = getconnection(event.Event, 1)
if connection then
connection:Fire("local handler")
end
task.delay(1, function() own:Disconnect(); event:Destroy() end)