How to teleport players from one place to another private place

Hello Devforum!

I am attempting to make a lobby system, something like a story game, or the mimic. I want to be able to teleport players to a place with the map that has the story or gameplay in it. The only issue I have is how can I achieve doing so, while also preventing other players from joining.

An example is, 5 players who are being teleported to the map place for the game, using teleport service I can do that, but how can I make sure that the place they were teleported to only allows the 5 players to be there?

I’ve tried to reserve private servers for a map place from the lobby place, but I do not think it’s possible.

I feel like I am overthinking this, but at the same time I cannot find anything on the devforum or online that can really help me with what I need.

If this post is in the wrong place or it’s not a valid question just let me know! :grinning_face_with_smiling_eyes:

3 Likes

How abt using Places? It seems lik an attractive option.

2 Likes

That’s what I am attempting to use :sweat_smile: I guess I should have been more clear on that, when I said places I meant the different experiences/games that hold the maps and gameplay.

2 Likes
TeleportService:ReserveServer() -- creates a private server

And yes it’s possible, as long as the place is in the universe if the start place.

4 Likes

ReserveServer is grt option, all u need to do is add 5 plrs to a table and teleport them to place id. Moreover, no one else can join as its private and needs access code.

2 Likes

Thank you, it worked!

At first I was a bit confused on what you meant by start place, then I realized, games and places are different. I was trying to teleport players to a private server from an entirely different game. I did not know we had to create a new place in studio for that specific game.

Thanks for the help! :smiley:

If anyone else comes across this and is still confused, this can help you I think…

1 Like