Reserve Server Error 770

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.
image

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!

1 Like

You know, my team and I never figured this one out. I’ll happily look into it once again for you, if interested.

1 Like

I actually just figured it out, I made a sleepy-head error.

teleportService:TeleportToPrivateServer(game.PlaceId, code, players:GetPlayers())

should have used placeIds[placeName] instead of game.PlaceId. Though, I can try and help you through why your teleport to a regular game server isn’t working if you want to hmu Awesom3_Eric#6485

Sent friend request over discord just a few seconds ago :slight_smile: OG LeBomb is me