How to make sure players get in the same server?

Hello! I need help with this. I’m using a Party System in a game I’m working on, but I don’t entirely know a lot about TeleportService… How would I make the players in the party end up in the same server when teleporting?

I’m assuming that I use API:Class/TeleportService/ReserveServer in order to do this, but not entirely sure.

A little help? Thanks.
(I do not need code, just need to know how I would go about it.)

Reserved Servers let you send an entire list of specific people together into their own server:

TeleportService:TeleportToPrivateServer(PlaceId, ReservedServerCode,{list of players})

Just as I thought, thanks!

Keep in mind that reserved servers are private servers. If you wanted to make the players end up in servers that aren’t private (i.e. multiple parties/loose players can end up in the same server), there currently is no good Roblox API to accomplish this. You’d have to write and maintain your own matchmaking system if you want that, which is a pain.

4 Likes