How can I create a counter counting how many players are in a place?

I want to create a live counter of how many players are on each server for a specific place. I don’t mean a game, I mean the places inside of a game. The picture below will show what I mean.

image

I have been searching for hours, and found completely nothing on how to do this. I have check on google, Dev Forums, YouTube.

I need this, so I can add a counter in the games lobby so the players will know how many players are in each gamemode.

Cheers - Peter :slightly_smiling_face:

Check out MessagingService! I use it to let servers communicate headcount too, as well as for a global chat between the servers.
As a quick brief on how it could work, you’d count how many people are in your server (PlayerAdded/PlayerRemoved dependant), keep that value somewhere, then update a global total through messaging service. If a servers’ local headcount goes up or down, compare it to that stored value to see if you gained or lost, and update the server accordingly (say, this one lost two people, so I’d grab the global total and -=2 it, then update the other servers)

2 Likes