Joint replacement

Hello. I am currently trying to do the same joint replacing of a ragdoll on for a certain limb. I have tried a few things but they would always end with my character ragolling or it not working.

Any info regarding how to only transfer the ragdoll to 1 limb is much appreciated

Disable the joints in the limb, and add ball socket constraints with part0 and part1 being the same as the joint. And to undo it just enable the original joints and delete the ball socket constraints. A mistake I made a while ago was deleting the actual joints, then adding them back later. Doing it that way breaks character animations.

How do I disable the joints in just that one limb and not the whole body? I have a ragdoll script that a friend gave me and that disables the whole character. How would I make it to focus on just that one limb?