game.Players.PlayerAdded:connect(function()
Label = script.Parent.TextLabel
Players = game.Players:GetPlayers()
Label.Text = "Player Count: "..#Players
end)
game.Players.PlayerRemoving:connect(function()
Label = script.Parent.TextLabel
Players = game.Players:GetPlayers()
Label.Text = "Player Count: "..#Players
end)
Would you use something like messageservice? Not sure how exactly this can count all users in a whole game.

1 comment
https://devforum.roblox.com/t/getting-current-player-count-using-webapi-and-http-service/247527/22