Skip to content

rbx.teleportQueue.remove ​

Removes a script from the teleportQueue.

Signature ​

luau
function remove(id: string): ()

Summary ​

Parameters ​

ParameterTypeDescription
idstringThe identifier of the script to remove.

Example ​

luau
local teleportQueue = require("@runtime/rbx/teleportQueue")

local scriptId = teleportQueue.add("print('will be removed')")

teleportQueue.remove(scriptId)