How to stop random flailing

Sometimes during this boss fight I’m working on, the boss ends up flailing around on the floor, unable to move. Attached is a video showing what I mean:

External Media

I’ve noticed that this occurs more frequently after the boss uses a dash (which uses bodyvelocitys)
Things I’ve tried:
Disabling ragdoll/fallingdown state
Disabling platformstand before it uses a dash ability
Changing the humanoid state to running every frame with heartbeat (gettingup had same results)
These kinda work, but does anybody have suggestions for stopping this?
Thank you!

1 Like

I finally found a fix. Before I have the boss use any movement ability, I just set the velocity to zero and wait for a frame. The wait is unnoticeable and this has completely stopped the flailing. Hope this helps somebody!