I have this little project of mine and i needed to add a debounce to a function. I've tried for hours but i can't figure it out. Piece of code below.
local part = --reminder to do this
part.Touched:connect(function(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(1)
end
end)

1 comment
I've read dozens of tutorials on debounces but only this one made me comprehend. Thank you, it worked perfectly!