queueonteleport
Queues Luau source to run in the next place you teleport to, as soon as it has loaded.
Signature
queueonteleport(source: string): ()Parameters
sourcestringThe Luau code to run after the teleport.
Returns
Nothing.
Note
Example
queueonteleport([[
print("arrived in", game.PlaceId)
]])
game:GetService("TeleportService"):Teleport(game.PlaceId)