In my battlegrounds game I making to gain some experience programming, I have this one skill that plays an animation where the user attacks the target with a few punches and then throws them. I use my knockback handler and ragdoll handler to achieve the throwing part, as it comes after the animation ends.
The animation plays fine and there were some bugs at first that i fixed myself, but there is one problem I don’t know how to fix myself. After the target is thrown and ragdolled, whenever the ragdoll has finished, the player sometimes gets stuck in the ground, but it isn’t a problem with the knockback or ragdoll handler because they work just fine when I am using them for my m1 punches.
I haven’t found anything similar to this whatsoever, and I’ve tried things like setting the target’s cframe upwards a couple studs just to guarantee they don’t get caught underground, but it still does nothing.
(Works just fine everytime with m1s)
https://gyazo.com/a19db2612141c77682a9ecaab22fb6ac
It will either get up like this or just completely get stuck under the floor whatsoever
https://gyazo.com/c037a9d5cec19d556a63aca108aaa510
There is also another weird behavior where if i use my normal m1s after this move, every part in the dummy gets deleted, eg. arms, head, torso etc.