Python, sorry, i won't use structure of your experimental gun, cuz i want to make one that looks and acts realistic. This means using no infinite motors etc.
This is hardly a ragdoll. I recommend you to make a collidable skelet and hide it under "skin" layer. Skin itself make not to collide with itself and attach it to a skelet with hinges