Trying to make my stun system perfect

I have been trying to fix this stun system for my combat system for a couple of days now.
The issue is that I dont want the player to get un-stunned while the opponent is comboing them.
What happens is that once a player gets stunned, they wait about half a second and they are unstunned. But the opponent cant continue the combo because the player just gets unstunned mid-combo.

How would I go about making stun go along with the attacks?

what i simply did, was create the effect on client using a remote event, fire the rm when the attacker has used the stun move, and create an animation to play on client as a fall(optional) and add blur on client.

Have a stun value represent how long a player is stunned for, then if additional hits are registered after an initial hit to player increase his or her stun timer, if the stun timer surpasses a certain value for any given player you could perhaps put them in a state of vulnerability to give them a chance of being able to fight back.

1 Like