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

Total players in a universe?

Asked by
PredNova 130
9 years ago

I'm wondering if it's possible to make a script that will get the amount of players in a universe?

Say I've got a hub place, and 5 other 'places' able to teleport to in the universe, How would I get the amount of players in them and then send that info back to the hub or is this not physically possible?

Don't particularly want the full script if this is even possible to do, Just a few hints on how it would be achieved :) Thanks

2
I believe you would need to have a script within each server that would report back the number of players on the server by using NumPlayers and the datastore would add up the total. FearMeIAmLag 1161 — 9y
0
Thanks man :) PredNova 130 — 9y
0
No problem. If you have any other questions, don't be afraid to ask! We're willing to help you. FearMeIAmLag 1161 — 9y

1 answer

Log in to vote
0
Answered by
Muoshuu 580 Moderation Voter
9 years ago

A simple way to accomplish this would be to use a Global DataStore and relay joins/exits back to the database, using PlayerAdded and PlayerRemoving.

Ad

Answer this question