I know this is years too late but on your camera movement input just attach a branch and a boolean for me if isdead is my condition