Make a ragdoll that locks into the front of the players head

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? A first person ragdoll system where the player ragdolls on death or heavy impact, but the camera stays in the players head looking in the direction of the face without the accessories getting in the way.

  2. What is the issue? The ragdoll system does not stay locked to the players face and does not make accessories invisible.

  3. What solutions have you tried so far? Looking around the DevForum and the Internet and attempting to write my own script.

Bind a function that assigns camera CFrame to head CFrame to Heartbeat, and set LocalTransparencyModifier of accessories to 1