Hello there!
I’m simply trying to teleport a table of players to a private server of a place that is located within the same game.
I keep getting an error saying the place is restricted.
Screenshot
I already tried the different variants of TeleportAsync
and also turned on the API access and teleport setting in the games’ settings.
I grabbed the placeid to teleport from asset manager, so that should be fine.
Here is the current (but messy code) used to teleport the player:
local function teleportPlayers(plrList)
print(plrList)
local newGameServer = teleportService:ReserveServer(GAME_PLACE_ID)
print(newGameServer)
local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ReservedServerAccessCode = newGameServer
--teleportOptions.ShouldReserveServer = true
teleportService:TeleportToPrivateServer(GAME_PLACE_ID, newGameServer,plrList)
--teleportOptions:Destroy()
end