so I wanted to make a click to add 1 to my leaderstats that worked then somewhere else i needed a timer I tried adding a timer
script.Parent.Activated:Connect(function() local char = script.Parent.Parent local plr = game.Players:GetPlayerFromCharacter(char) local leaderstats = plr:FindFirstChild("leaderstats") if leaderstats then local coins = leaderstats:FindFirstChild("Cash") local boost = plr:FindFirstChild("CoinBoost") if coins and boost then coins.Value = coins.Value + 1 + boost.Value end end end)
thats my click to add 1 to leaderstats i need a timer so when you click you have to wait however much time you put to be able to click again to earn money

1 comment
i need an answer helpp