queue_on_teleport Synchronous

  • queue_on_tp
  • queueonteleport
  • queueontp
  • queueteleport
  • syn.queue_on_teleport

Queue a Luau source string to run after the next eligible game teleport. Use it for a small piece of setup that should follow the player into the new session.

Syntax
Luau
queue_on_teleport(source: string) -> ()

Parameters

Function parameters
ParameterTypeDescription
sourcestringLuau source to run after teleport.

Returns

()

No values.

Usage notes

Requires an active game session and current authorization. Queuing does not run the source immediately.

Call clear_teleport_queue to discard entries you no longer want executed.

Example

Example
Luau
queue_on_teleport([[print("Arrived in the new game session")]])
print("Teleport setup queued")
Kawaii documentation