I have found a rather silly bug. If the player jumps in a locker, shuts the door, crouches, then presses the ragdoll button, the player dies almost instantly