How do I make Roblox assign a new server to each player but keep the max player count at 4?

Hello! I’m currently making a game that uses a matchmaking/lobby system. I want each player who presses Join on the game’s page to connect to a brand new, empty server, but I want the server’s maximum player count to stay at 4 so up to a whole squad can join somebody’s lobby. How would I do this? Thanks!

3 Likes

There should be a function such as TeleportService:ReserveServer(). You can research on this more using the documentation or other resources.

1 Like

I already use this for connecting players to the actual games, but my main menu lobby’s (the place you use to connect to the matchmaking) always fills servers up to 4 players, and I want each player joining from the game’s page on Roblox to have their own server with a max player count of 4 so their friends can teleport into their parties before the game starts.

1 Like

in that case, you can detect when a player joins and then do reserve server.

1 Like

I exactly did that. You cannot assign private servers directly upon joining. I personally have a place with 15 slots, this place reserves the server for each player (or gathered the saved code from DS), and then I teleport those users using the reserve access code. So you need a place that handles reservation & teleportation to another place, whose max user count would be 4. You can assign different user counts on different places.

2 Likes