firesignal

Fires a signal with the given arguments.

Syntax

firesignal(signal: RBXScriptSignal, ...: any) -> ()

Parameters

ParameterTypeDescription
signalRBXScriptSignalThe signal to fire
...anyArguments to pass to handlers

Returns

This function does not return a value.

Description

firesignal invokes the Luau connections attached to the signal with the supplied arguments.

Example

local folder = Instance.new("Folder")

folder.ChildAdded:Connect(function(child)
    print(typeof(child))
end)

firesignal(folder.ChildAdded)            -- nil
firesignal(folder.ChildAdded, workspace) -- Instance

Notes

  • All Luau handlers are called immediately
  • Arguments are passed to each handler
  • Use getconnections to fire specific connections only