Problems switching camera types

I really am at a loss as to how to switch between camera types. Essentially what I am trying to do is show a menu each time a player dies. So at first spawn I set
player.CameraMode = Enum.CameraMode.LockFirstPerson
then when the play dies I show a gui and switch the camera back to classic.
player.CameraMode = Enum.CameraMode.Classic
The problem is the mouse is still locked to the center of the screen…
Using the render step doesn’t work either as then the mouse is always unlocked. Any ideas?

1 Like

just add a modal to the buttons in the gui, you don’t need to change the camera mode.

I literally had no idea this exists, thank you so much. That is exactly what I was trying to do haha.

Is there a reason why the mouse is still locked to the center (i.e., the camera did not seem to switch back to Classic mode)?