The code below is used to position and orient a camera during a cutscene. However, regardless of CamPart’s orientation, or the number I put inside the math.rad() functions, the camera is always oriented 135 degrees away from the desired position. How do I fix this?
cam.CameraType = "Scriptable"
local targetcam = script.Parent.CamPart
local position = targetcam.Position
local target = targetcam.Position + targetcam.CFrame.lookVector
cam.CFrame = CFrame.lookAt(position, Vector3.new(math.rad(180),math.rad(180),0))