firesignal
Fires a signal with the given arguments.
Syntax
firesignal(signal: RBXScriptSignal, ...: any) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
signal | RBXScriptSignal | The signal to fire |
... | any | Arguments 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) -- InstanceNotes
- All Luau handlers are called immediately
- Arguments are passed to each handler
- Use
getconnectionsto fire specific connections only
Related Functions
getconnections- Get signal connectionsreplicatesignal- Fire with replication