I need help on how to add a debounce because if I don't add that when people step on the part they will get many of the stat "Wins" in a second. Someone please help me!
"Wins" giver part script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players:FindFirstChild(hit.Parent.Name).leaderstats.Wins.Value += 1
end
end)

3 comments
That is how you add debounce, basically.
You can remove a couple of lines if you do if debounce then return end. It's basically the same thing.
TYSM IT WORKED! I'm a worse scripter so to me learning how to add a debounce is like being a huge step up.