Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you rotate camera in global axis?

If you're an experience CFrame scripter, you should know what local and global space is. So I want my camera to rotate in global axis, so how do I do it?

If I use CFrame.Angles() or CFrame.fromEulerAnglesXYZ(), it will just rotates in local space

1 answer

✓ Accepted answer

Assuming you've already defined the Camera value:

local rotation = CFrame.Angles(0,0,0) -- Change to your desired rotation
Camera.CFrame = rotation*(Camera.CFrame - Camera.CFrame.p) + Camera.CFrame.p

1 comment

0

Seems good to me, although I haven't tried it yet, I already found another way of doing this. So thanks anyways

This discussion is preserved as it was. New answers, comments, and votes are closed.