How do I properly use ReserveServer?

I want to create private instancing housing. The player would be teleported to a private reserved server where no one can join after him unless they use a menu and input the player’s name they want to teleport to. I have tried using ReserveServer in many ways, and all failed.

Here is what I am currently trying:

local access = game:GetService("TeleportService"):ReserveServer(3074208375)

I get the error “Unable to cast value to Objects”. This is running through a RemoteEvent that has player defined, and I also have HTTP requests enabled as I read that could fix it online. The PlaceId is in the universe/game. The only way I have got this to work is using game.PlaceID instead of the place I actually want to reserve a server for.

Put the player variable inside of a table like so:

local access = game:GetService("TeleportService"):ReserveServer(3074208375)

This is also how they do it in the wiki tutorial


Thank you so much, I have been working on trying to fix this for hours. I didn’t even realize that when I was going through the wiki. You are a life saver.

1 Like

The wiki is the best place to see how all the functions work.

1 Like