Volt

clearqueueonteleport

Clears the teleport script queue.

Syntax

clearqueueonteleport() -> void

Aliases

  • clearteleportqueue
  • clear_teleport_queue

Returns

This function does not return a value.

Description

clearqueueonteleport removes any script that was queued to run after teleporting.

Example

-- Queue a script
queueonteleport("print('Hello after teleport')")

-- Change our mind
clearqueueonteleport()

-- Now nothing will run after teleporting

On this page