queue_on_teleport
Queues a script to execute automatically after a teleport.
function queue_on_teleport(codecodestringLuau source code to execute after teleport.: string): ()Usage
Persist a script across teleports
queue_on_teleport([[print("I survived the teleport!")]])
game:GetService("TeleportService"):Teleport(12345)