I'm super lost with the angle of the players cam

I have a rotation camera script and I’m sooooo lost with how to set it to the default angle around the players character. . I have a script that rotates the camera (using the cframe of a part in the players character). So what do I use to set the camera angle back to the default. By this I mean where the camera is in the rotation, back to the players back (the default when the player loads in). Brookehaven also does this for the camera.

I have no idea how to set it back to the default

 local fireUpdateCam = RunService.RenderStepped:Connect(function()
	if tweenComplete == false then
		updateCamera()
	end
end)

local UI = player.PlayerGui:WaitForChild("ScreenGui")
-- This is what runs when the button is clicked, so this is where the camera will change
UI:WaitForChild("TextButton").MouseButton1Click:Connect(function()
	fireUpdateCam:Disconnect()
	camera.CameraType = Enum.CameraType.Custom
	UI:WaitForChild("TextButton"):Destroy()
end)

I should also note I don’t need help setting the camera back to costum, I just need help changing the angle of the camera.


As you can see it is rotating, and when you click to button I don’t know how to set it back to the default which is behind the character.

workspace.CurrentCamera:Destroy()

You’ll need to recreate the reference to the new “Camera” instance which is automatically created and assigned to the “CurrentCamera” property of the workspace when doing this.

You could also store the original value of the “CFrame” property of the camera somewhere before manipulating it and then revert to that value when the camera manipulation is finished.

Finally, you can set the “CameraSubject” property of the camera instance to refer/point to the local player’s character’s “Humanoid” instance (which is how the camera operates by default).

camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = Humanoid --define reference to humanoid instance
camera.CFrame = CFrame.new(Head.CFrame) --define reference to head instance

The problem with this is only one thing, the head is controlled in StarterCharacterScripts, and this is in starterplayerscripts. The head cannot be remade inside of that, right?