CFrame "Global" Rotation

My camera is supposed to rotate along the Y axis ( green line), although I want the rotation from the second picture, right now it rotates according to the first picture, how do I script this?
The rotation of the Attachment is -22.5 degrees on the X axis

cam.CFrame = current.WorldCFrame * CFrame.Angles(0, math.rad(rotation), 0)


1 Like

CFrame.new(Vector3) returns a cframe without any rotation applied.

cam.CFrame = CFrame.new(current.WorldPosition) * CFrame.Angles(0, math.rad(rotation), 0)
1 Like

Now it also has to keep “looking down”, this is only 50%

I believe this is what you want:

image
rotation

19 Likes