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

How do I get the player count of another server/place?

Asked by 5 years ago

Not asking for a script, just possible methods and if possible a quick example. I would like to create a GUI with a text of something like

X Place Player count: 0/30

Thank you!

1 answer

Log in to vote
0
Answered by
oreoollie 649 Moderation Voter
5 years ago
Edited 5 years ago

If both places are within the same universe, you can use DataStores, if the places are in different universes your best bet would be using HTTPService. If you use HTTPService you could get that information two different ways, the first being if you own the game you're trying to get the player count from and the second being if you don't own it. The first would be to have the game you're getting the player count from POST its current player count to an external server and have the game receiving the player count GET the player count. The second method is having an external server check and store the player count retrieved from the game page and have game GET it from the server. Both of the HTTPService methods require some amount of programming on the server side. Nothing much, probably some simple PHP or Python.

If my answer solved your problem please don't forget to accept it.

Ad

Answer this question