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

How To Check How Many Players Have Ever Played A Game?

I Am Trying To Make A Reveal System That Makes A Curtin Come Down When It Hits 100 Plays. Here's What I Came Up With.

onPlayer entered Check Plays
then

The Rest Already Works.

2 comments

0

you know if I had a penny for how many times I said "wtf" while reading this, i'd be pretty poor because i only said it once

0

Lol right

1 answer

✓ Accepted answer

Just do this:

local playersCount = 0
game.Players.PlayerAdded:Connect(function()
	playersCount = playersCount + 1
	if playersCount >= 100 then
		--insert the function here--
	end
end)

If this worked, and helped, accept the anwser. I hope it worked for you! OBS: If the server shutdown, the count will reset ok ?

2 comments

0

no

0

you gotta use datastores

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