Hey there, I’m having difficulties teleporting players to a reserved server. It is consistently throwing an “Error Code 770, Place Does not Exist” error everytime it is called, and I have no idea why.
I made sure that I am using the correct ID (because I’m able to teleport a regular server). This place is within the universe of the main game. The maingame is currently privated under a group, though I do not believe this is the issue.
I looked at other sources within the devforum, such as this: Teleport Error Code 770 (Place Does Not Exist) No Matter What ID I Use. The publicity of the game wasn’t the main issue, though, the author found it was a matter of group settings, but he didn’t know what they were.
Here is my code:
local placeIds = {
VolcanoRun = 4797050793;
Robbery = 5305368737;
}
local teleportModule = {}
function teleportModule.teleportPlayers(tableOfPlayers, placeName)
local code, placeId = teleportService:ReserveServer(placeIds[placeName])
teleportService:TeleportToPrivateServer(game.PlaceId, code, players:GetPlayers())
-- for _, player in ipairs(tableOfPlayers) do
-- if players:FindFirstChild(player.Name) then
-- setTeleportScreen:FireClient(player)
-- end
-- end
-- teleportService:TeleportToPrivateServer(game.PlaceId, code, players:GetPlayers())
end
return teleportModule
I commented out the code that doesn’t apply to the problem. I used players:GetPlayers() as a test, though it seems still to not work. IF anyone have has any solutions, it is greatly appreciated!