queue_on_teleport
Queues Luau source to run after a subsequent teleport.
Queues source text, not a callback or captured variables. Reacquire Instances and environments in the destination session.
queue_on_teleport(source: string): ()Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Source code to execute in the next game environment. |
Example
queue_on_teleport([[print("Arrived in the next game")]])Example output
Arrived in the next gamePrinted from the destination session once the queued chunk runs after teleport; nothing is printed in the current session.
Aliases: queueonteleport, queueteleport.
