So I only want my function to happen 4 times and I currently have a debounce which works fine but isn't there a way to shorten this?
My code:
debounce = true times = 0 while debounce do times = times + 1 if times <= 4 then wait(5) Attack() else debounce = false end end
Note: This code works fine, it's just I feel like theres an easier, shorter way to do this.
Do this:
for i = 1, 4 do wait(5) Attack() end