How to make body parts collidable?

I am making an R to ragdoll script and I want to know: How would I make body parts collide?

I know that when you die, your body parts have CanCollide turned to true. But I thought: When I would ragdoll, the body parts would clip through the floor!

I read that you could make an invisible hitbox sort of thing but that would be too time-consuming for me.

Would there be a way?


You can create a script that detects whenever the player dies, loop through their character model and change all of the Part’s CanCollide properties to true. Then, when they resosene, set them to false.

Edit: Just read a bunch of posts saying this doesn’t work, and that your best bet is to just weld parts to the arms and legs of the character when it dies.