CFrame.Angles incorrectly orienting camera

Hello, I’m making a game with a cutscene in it, and for the cutscene, the camera will move around with tweening. At the beginning of the cutscene, I change the camera CFrame the CFrame of a part in the workspace, but when I play the game, the camera orientation is not correct. I’ve tried a bunch of solutions but nothing has worked. Thanks in advance!
here is my code:

local camera = workspace.CurrentCamera
local cframe1 = CFrame.new(45.532, 9.484, 131.842) * CFrame.Angles(math.rad(-15), math.rad(-55), 0)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = cframe1

Here is how it is supposed to be oriented:

And here is how it is oriented:

try using
CFrame.lookAt(CFPosition, targetPosition, upVector)
so in ur case you would do

camPos = Vector3.new(45.532, 9.484, 131.842)
targetPos = idk wtvr u want… can be a block’s or character model’s position. Just make sure its not a CFrame. must be vector3
CF1 = Cframe.lookAt( camPos, targetPos, Vector3.new(0,1,0) )

I got it to work, thank you so much!

just know that if the CfPosition and TargetPosition values are the same then the object gets teleported to a different reality. its a weird bug

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