Trying to change camera

I’m trying to change the camera, but it only moves it up. im trying to make it rotate down too. The script is:

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
player.CharacterAdded:Wait()
player.Character:WaitForChild("HumanoidRootPart")
camera.CameraSubject = player.Character.HumanoidRootPart
camera.CameraType = Enum.CameraType.Attach
camera.FieldOfView = 40
game:GetService('RunService').Stepped:Connect(function()
	camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,30,0) * CFrame.Angles(0,math.rad(90),0) 
end)
2 Likes

It appears that’s your issue right there?

1 Like

I am pretty sure it does rotate if that is what you mean. The thing is it rotates each frame which means it will rotate 90° each frame which is really unoticable as it is only 3 frames of difference. Try to lower the “math.rad(90)” to like “math.rad(1)” and u will notice the difference

I am pretty sure he wants it to go up but that the camera isnt rotating

He should’ve clarified that in the post then. I wouldn’t have known.

1 Like