Ragdoll toggle unity 2d

I’m trying to figure out how to make a ragdoll flop on the floor but then stand by toggling it with R in unity 2D. Someone please help.

i all ready have the code for standing and walking and jumping