Trigger Box - ragdoll ON/OFF

how to turn on and off the ragdoll function when you enter the box
I want the character to be in the “ragdoll” state for a while, and then exit this state after 2-3 seconds