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

Click For Cash Anti Spamming System?

Asked by 4 years ago
Edited 4 years ago

I am trying To Make A Jailbreak Robbery System But I Need A Wait For The Script So People Cant Just Spam It. To Trigger It You Click A Brick And You Get Money Here is the script

wait (30)
script.Parent.ClickDetector.MouseClick:connect(function(player)
    local players = game.Players:FindFirstChild(player.Name)
            local clicks = players:FindFirstChild("leaderstats")["Money"]
                clicks.Value = clicks.Value + 150
                wait (5) 
end)
0
you can use debounces Fad99 286 — 4y
0
as in pauses in the script Robloxian_Hero1234 14 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
script.Parent.ClickDetector.MouseClick:connect(function(player)
    local players = game.Players:FindFirstChild(player.Name)
            local clicks = players:FindFirstChild("leaderstats")["Money"]
                clicks.Value = clicks.Value + 150
        click.MaxActivatoinDistance = 0
                wait (5) 
        click.MaxActivatoinDistance = 5
end)
Ad

Answer this question