Reserving server doesn't work

I wanted to test around with reserving server. Here’s my code:

local function reserveThisServer()
		local access = game:GetService("TeleportService"):ReserveServer(game.PlaceId)
		game:GetService("TeleportService"):TeleportToPrivateServer(game.PlaceId, access, {player})


Unfortunately an error pop ups: 404 bad request (or similar).

What am I doing wrong? Thanks for responses.

Make sure to turn on Third Party Teleports I believe? Either that or API Services in your Game Settings


1 Like

Adding on to this remember you can’t teleport in studio

Why should it be like that since I want to teleport player to reserved server that is this game’s place id?

I honestly have no clue, possibly due to when you use TeleportService depending on the function, but my guess is that it has to load everything else inside the Explorer window since you’re literally moving to a different place on that same screen which would result in a lot of downgrade performances I’m guessing

I know it’s off topic but is there a way to reserve this server I mean the server player is currently on (so that TeleportService ignores these ‘reserved’ servers and doesn’t teleport new players to them)?

You could lock the server by kicking everyone who joins, except for the teleported players?

It is not a solution as kicking players = losing players.

Try using JobId:

Also, you could teleport the player to another server if they aren’t the players who were teleported to the private server.

Any examples?

Here’s what I need. I just want to know how to reserve current server.