Hi! I’m trying to get my place teleport to work after a timer reaches 0 when standing on a pad. However, it keeps saying Attempted to teleport to a place that is restricted
, even when I have set the entire game to Public
. I have looked at the documentation for TeleportAsync
and it still seems to not be working.
Here is my code snippet:
--local accessCode = tostring(game["Teleport Service"]:ReserveServer(12805152380))
local successed, returnedData = xpcall(function()
local tpOptions = Instance.new("TeleportOptions")
--tpOptions.ShouldReserveServer = true
game["Teleport Service"]:TeleportAsync(12805152380, playersReady--[[, tpOptions]])
Some of it is commented out because I was trying to see if the issue persists even when I’m not trying to teleport the players to a reserved server. playersReady
is just a table of which players were ready while standing on the pad.
Also, there is separate code that repeatedly retries the teleport if it fails until the players are finally in the server/reserved server, but I’m assuming this piece of code is the entire issue.