queueonteleport
Queues source to run after the next teleport.
Syntax
queueonteleport(source: string) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Luau source code to compile or execute. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
queueonteleport is part of the Miscellaneous library. Miscellaneous helpers cover module identity, scheduler settings, teleport queueing and other process-level utilities.
The change is applied directly to the live target, so later reads observe the updated value.
The aliases queue_on_teleport(source), queueteleport(source) resolve to the same implementation.
Example
queueonteleport("print('teleported')")
Notes
- Aliases:
queue_on_teleport(source),queueteleport(source). - Some settings affect the module globally rather than the current script.