How do I fix / reset a players camera on death?

Hello,

My goal is to have a script where when a player is at 0 HP, the camera resets / fixes. Only reason why I want a script like this is due to a tool I have. When you don’t have a tool equipped, your camera can move freely while holding right click, but when this specific tool is equipped you enter shift lock. So when a player dies with that tool equipped, their camera remains on shift lock on respawn. But, I want to PREVENT that.

Thank you.

You can disable shift lock after they respawn. Or set Enum.CameraType to Custom.

How would the code look like, and where do I put this script to fix the camera?

If you want to disable ShiftLock when they die, while still supporting ShiftLock, then you have to create or find a custom ShiftLock system and use that system to forcefully enable and disable the ShiftLock system.