canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

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

Connect OnceBodySignalConnection
  • 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

Script StartGet ServicePlayersServiceGet EventInstancePlayerAd…EventConnect OnceBodySignalConnectionplayerPrintFirst pl…Value
The graph this output was compiled from.
luau
local Players = game:GetService("Players")

Players.PlayerAdded:Once(function(player: Instance)
	print("First player is in")
end)

Not reviewed yet