Help with combat script

I’m making a combat script, and I have this one problem where if a player gets hit, they get stunned. And if they get hit again, they get stunned again. The problem is that when the player gets hit for the first time, they are supposed to get unstunned after a period of time. So when the player gets hit again, its supposed to stun them, but because the first time they got hit, it unstuns the player despite them getting hit the second time. I made a fix, but it’s kind of weird when I try to make different moves. Any help would be appreciated.

Can you please give the erroring source code?

1 Like

There’s no error, it’s just that the player gets unstunned when they arent supposed to.

Still unanswered… (30 cahracter max thing)