the ragdoll works by making ballsocketconstraints on the characters limbs and then making a collideable part inside each limb (the oval part). the ragdolls are done cilentside by a remote event triggering all clients to load up the ragdoll.
If it helps, I noticed when a player touches the limbs, it slowly moves to the supposed ragdoll spot as you interact with it