Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my local teleportation script doesnt work?

Asked by 2 years ago

i have this teleportation script (client) that teleports player to another game when number value is 5

local PlaceID = 10695374973
local function onNotifyPlayer(maxPlayers, respawnTime)
TS:TeleportAsync(game.Players.LocalPlayer, PlaceID)

but for some reason when value is 5 it gives me error saying:Unable to cast value to Objects - Client - localcheck:10 (line where teleport should happen)

Answer this question