So, I’ve tried to develop a custom (not really) ragdoll system for my game and for the most part, It works fine except for the weird issue that occurs when there is even a little force applied to the ragdoll. What the code does is it changes the humanoid state type to Physics and platform stands the humanoid so the player cannot move during it. At the end of the ragdoll, it changes the humanoid state type to Ragdolled (I’ve also tried other state types like jumping) But still have my character stunned or platform standing after the duration of the ragdoll.
Here is the video:
Two things worth noting here is that the pillows have no collisions in the whatsoever. Another thing is that this bug is really prevalent whent the player is holding a tool rather than when the player is not (Where the bug still DOES happen. Just not as commonly) . I just want to know if there is a way to solve this bug (If it is a roblox physics bug) or if its just an issue made by me.
Ill put the chunk of code used for this in the replies if anyone wants to see it.