local debounce = false clicker = script.Parent.ClickDetector clicker.MouseClick:Connect(function() if not debounce then debounce = true print("event fired") wait(3) debounce = false end end)
ive used debounce as it is but after looking up two sources one uses local debounce in the first line and another does not use local for debounce. does it matter or does this impact how debounce works?