How can I make a ragdoll on command?

I’m trying to make a character joint activate and the animation stop at will. Then with another check of a boolean, turn the animation back on. Would I be able to always have the character joints ready and the character would ragdoll when animation is turned off? Thank you.

@Doneyes