Teleport to Only one Sub-Server/Game

Hello guys, i an wondering if its possible that players can teleport to an sub-game BUT in only one server? So aktually when a player joins the subgame he have access to but when the max players are reached nobody can teleport then untill the server has #game.Players:GerChildrens() -- Example Max = 50
And its 1 player less then Max players

Then the player can teleport to that server

Solution & Info

I have tried that to scriot but it doesn’t work, i have tried to look around the Dev Forum for news, tipps & tricks and that teleport thing but i didn’t find one. I didn’t even have a script right now or i don’t know how to do it

1 Like

Max mean Max. you cannot teleport there if it has no more room for sure.
If you need more than 50 players in a server, you can only increase the MaxPlayer.

Notice that voice chat feature is only available when max player <= 50.

1 Like

What I understood is that you want one server have max 50 players, from which 1 is reserved for owner/moderator/etc., so that total free space is 49 slots.

You could probably check for free servers using MessagingService’s methods :SubscribeAsync() and :PublishAsync() to find free server. Using these methods, you can send servers player count and some other info, which will be processed by current place in which player is.
TeleportService:TeleportAsync() with it’s TeleportOptions instance you could control somehow in which player will be sent.

This is just what I think would work, I haven’t done anything with teleportation services for a while.
(Also this post should’ve been put under “Scripting Support” category)

1 Like

Hi @EtNowis i know it but thats not my proplem, you see in each game is it so that one server by one server get the Max player inside if so the second server will be createt and thats the proplem i have.

I wan’t that player just teleport to one server like a sub-server and that server is the only one thats will be createt no second or more ONLY One so if Server reach Max Players, nobody can teleport to that server with a costum message

its good and awensome when you have this for Trainings also Promoted Trainings where you can rankup, try SCR also Stepford County Railway > Trainings > join trainings – But you’ll need to join the Group first and attend a Requirementslist to come to Stage 2 else watch a vid. For that “SCR Rovlox Training” or “Stepford County Railway - Training Roblox”

i still don’t understand what is the purpose of “only one subgame server but it has 50 people only”

like if your “main game” now has 1000 players, and then only 50 of them get to play the “actual subgame”. it doesn’t make sense.

if you instead is asking, like you have a “lobby” and then players can create subgames as servers. and they could look up the list of those subgames and join one of them, then this make sense.

then you will use the method described by CDFII.
look up TeleportServiceOptions

1 Like