I wrote a piece of code that is supposed to make a working sword, but the debounce that I added for the damage isn’t working. Please help me out.

I wrote a piece of code that is supposed to make a working sword, but the debounce that I added for the damage isn’t working. Please help me out.

Notice how you have the wait before what your actually doing in the script, so that will totally render the debounce useless, so put the “hit.Parent.Humanoid:TakeDamage(35)”
before the wait(1.25) and it should work just fine
I tried it, still not working.
Alright well I see another problem why do you have the touched event wrapped inside of the first debounce function…
@YellowBannana898 just use one debounce…
Oh yea! Your’e right! I should add the end before! I will try that and see if it works!
Still not working… (30 Characters)
show me your edited script
30chars
Hm im not totally sure why cant you just use one debounce for the whole script?
Way more confusing. (30 Characters)
How is it more confusing just use one debounce theres no need for two