I am trying to make a game that will be hosting some places and i want to get how many players are playing the game, i have already done that with using datastore but how can i get the number of the servers currently running
✓ ANSWER ACCEPTED
Is there a way of getting the number of servers a place has?
2 answers
✓ Accepted answer
You can use MessagingService to report how many players are in each server.
You can also do the same for x servers. Everytime a server is started (once the serverscripts in SSS start) just publish the fact that a new server launched. Once a server is about to stop (game:BindToClose) you can report that a server is going down.
1 comment
0
Thanks It is now working, i couldn't find how to use messaging service and once the only service's info that i know can be accesed via a different place was datastore so i used datastore
i now looked at it in the developer page but it kind of confuses me but i will try to make it work( i have never used messaging service before)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I updated my post