Hi. can someone help me with a spam filter? can someone do so if they spam click, it only redeems 1 click per second?
script: script.Parent.MouseClick:Connect(function(player) if player:FindFirstChild("leaderstats") and player.leaderstats:FindFirstChild("Cash") then player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + 25 end end)

8 comments
This does not work
Maybe your script is not on LocalScript, or try putting the bool = true which is in line #8 after the line #9...
Hmmm still not working
Workspace.Region.Main Biome.Trees.Woodland Biome Type 1.Union.ClickDetector.Scr:4: unexpected symbol near '?'
can u take a screenshot?? of ur script...
https://imgur.com/a/vTKnX8K
Its a local script btw
ur line 4's string sign is wrong, use "" and not that, it should be:
:FindFirstChild("leaderstats")and the cash one too, but im guessing that u have already fixed it since u accepted my answer..