Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Total players in a universe?

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

3 comments

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.

0

Thanks man :)

0

No problem. If you have any other questions, don't be afraid to ask! We're willing to help you.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.