Hello i was asking myself if there’s any ways to lock a server and make it so people can’t join this server when the client is looking for a server , thanks.
There’s no Roblox-based way to do this, but perhaps you could establish a system that will automatically teleport joining players to a different server when they join a “locked” one.
There is not a feature for this, but to achieve similar functionality in the past, I would use multiple places. The start place teleports players to specific servers in the second place.
Oh , that’s a big rip , but i may try something that makes the player rejoin the game until it finds a non locked server, thanks anyways.
How can i do that ? -----------------
It’s not that hard but there isn’t anything to use that is built in ROBLOX.(meaning a special function)
First create a value to check if the servers locked loop an if statement to keep checking the value. If there are any new players while the server is locked using player added or child added in the player service you can use :Kick() on the player.
yeah that’s what i’m going to make except its going to re-teleport the player until it finds a non locked server.
It depends on what you are actually doing. For my usecase, I was making a battle royal style game. Players that would be participating in the match were teleported to a reserved server in the second place.
How can you even get a list of servers?
Not sure a list of servers was mentioned on their post (despite that being really inefficient and an awful way to go about this, frankly - no point in a loop OR a ValueObject). This goes off tangent.
That being said, to answer it anyway, you’ll have to use an endpoint from the games API or utilise MessagingService to ping other servers for their JobId and other instance-relevant information.