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.
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.
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 ?
no
you gotta use datastores
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
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
Lol right