So I'm trying to make it so when you click on a textbutton it adds 1. I made that here:
block = 1
game.ReplicatedStorage.anything.OnServerEvent:Connect(function(player)
player.leaderstats.Blocks.Value = player.leaderstats.Blocks.Value + block
wait(1)
end)
But, if you use an autoclicker, you can get hundreds of points in seconds. I was wondering how you could add a cooldown so you only get a point every 0.5 seconds? Thanks.
