So in my case sometimes when character dies camera don't stay in one position but infinitely rotates with some speed until respawned. This is only i think when you start rotating camera in the same frame when died this bug happens. How can i prevent it by setting camera rotate velocity to zero or something like this so on death camera not rotating.