Save Camera CFrame

Im trying to make a morpher/shifter, it works but im trying to save the cameras cframe before I replace the character, how would I do that?
Heres a vid on what im trying to acheive

As you can see in the vid the camera resets back to your character, is there any way of saving the orientation/angle of the camera? thanks

Just save the camera CFrame as it includes its orientation too

To save it you can:

Create a CFrame value inside the player, and set it to the player’s camera position and then set the Camera.CFrame to the value.

yeah you can just save it on a variable

local oldcf = game.workspace.CurrentCamera.CFrame

before switching see what the cams cframe was and when you have switched change it back.

I figured it out!, it turns out I was doing everything right I just forgot to set the camera as scriptable lol
sorry guys

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.