You can use this module to easily toggle a ShiftLock like camera when you wish:
If you wanted to enabled/disable ShiftLock when the player Dies/Respawns, you could connect the .Died and .CharacterAdded event to the ToggleLock() function of the module.
Edit:
Apparently this module is not working for some people. If it doesn’t work for you, I would recommend investigating this example, that I know works from past experience.