Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I make a player join a server with x people in it?

Asked by 5 years ago

I'm trying to teleport a group of players into a different game, and try to get them in the same server. I think it would be easier to find a server with like 2/12 people, then teleport the rest of the players (10 of them) into that server. I know how to teleport to a server instance, but I can't figure out how to get a server with a certain amount of players in it. Is it even possible?

Thanks :)

1 answer

Log in to vote
0
Answered by
SCP774 191
5 years ago

Yes, it is possible. But it will be quite hard to make.

Firstly, you need a good knowledge over MessagingService. You can learn more about it here.

Secondly, you need to have a decent level of scripting skill in order to do this.

So first, you have to establish communication between servers. When a teleportation is requested, the server will request all servers to return their player counts. After collecting the data, calculate the best suitable server for the group of players. Lastly, teleport them to the server.

This may sound pretty easy on paper. But it can take quite a long time to actually script everything. This is the easiest reliable option for me. Hopefully this helped.

Ad

Answer this question