Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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.

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 Fifkee 2017 — 4y
0
Lol right ricelicker 52 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

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 ?

0
no Fifkee 2017 — 4y
0
you gotta use datastores Fifkee 2017 — 4y
Ad

Answer this question