How do I rotate a camera along the global axis and not local?

I want to make a camera that rotates left and right but also looks down but since it rotates on a local axis it rotates very jankly

camera.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(45), math.rad(20), math.rad(0)

this makes it rotate down then rotates locally left and right. i dont want this. i want it to rotate globally

robloxapp-20240118-1840299

2 Likes

Set a different pivot for the part. The part rotates around its pivot, so why not just change it?

1 Like

I want to do this with scripts.