Connect OnceRoblox✎
Runs the Body the next time the signal fires, then unbinds itself. No Disconnect needed, and no connection left behind if the thing never fires again.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
Inputs
- in:execution
- Signal:RBXScriptSignalmust be wired
Outputs
- then:execution
- Body:execution
- Connection:RBXScriptConnection
What it compiles to
luau
local Players = game:GetService("Players") Players.PlayerAdded:Once(function(player: Instance) print("First player is in") end)
Not reviewed yet