1. same as debounce
basicly, it stops it from running a button script too many times... so you don't get hundreds of weapons for example:
debounce = true
function onTouched(hit)
if (debounce ~= true) then return end
debounce = false
wait()
--scripting
wait(4)
debounce = true
end
script.Parent.Touched:connect(onTouched) |