What is the Camera CFrame following in what instance?

I want to know what is the CFrame of the camera which is following the character.

2 Likes

You can do it using a LocalScript, using the CurrentCamera instance in workspace.

local currentCamera = workspace.CurrentCamera

print(currentCamera.CFrame)

I tried that but it prints all of the CFrame Vector3 instead of the instance. (I want to know the instance so I can change the CFrame.

1 Like

Oh, got it.

The instance is CurrentCamera so you can just assign any CFrame to it.

currentCamera.CFrame = CFrame.new(123, 123, 123)

I have this script which changes the CFrame. But how can I change it back to its original camera CFrame?

cam.CFrame = headCFPosOnly*currentCamRotationOnly*addRotation
else
cam.CFrame = plr.Character. -- ???
1 Like

I’m a little confused. You can save your camera’s CFrame to a variable outside of the function, then you can assign it to that CFrame whenever you need it. Making the CameraType Enum.CameraType.Custom and setting its CameraSubject to Humanoid should also return the camera to its original state.