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

Is there a way to make this script where it counts all players in EVERY server?

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

1 answer

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