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

Is there a way of getting the number of servers a place has?

Asked by 4 years ago

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

0
I updated my post User#834 0 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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.

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 dionsyran2 66 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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)

Answer this question