Skip to content
Saiko

queueonteleport

Queues Luau source to run in the next place you teleport to, as soon as it has loaded.

Signature

luau
queueonteleport(source: string): ()

Parameters

sourcestring

The Luau code to run after the teleport.

Returns

Nothing.

Note

Example

luau
queueonteleport([[
    print("arrived in", game.PlaceId)
]])

game:GetService("TeleportService"):Teleport(game.PlaceId)