queueonteleport
Queues Luau source to run after a supported teleport.
Syntax
queueonteleport(source: string) -> ()
Also available as
queueteleportqueue_on_teleport
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Source to execute after teleport. |
Description
This stores source text, not a function closure or its captured locals. Queued work belongs to the instance’s teleport flow; it is not application-wide AutoExecute. Do not assume a failed teleport or a disconnected session will execute the queue.
Example
queueonteleport('print("Teleport complete")')
These are Game executor contracts. Check build requirements and session lifetimes before using them.
