Rotate camera globally

Hello. My friend is making a “mini-city” type of game. I’ve made this 2D Camera script and I need the camera to rotate on the global axis.

Here’s a visual representation of the camera:

Here’s what it’s doing now:

Here’s the expected outcome:

Current script section:
(This is not the full script!)

local rotateChange = delta * 3.5

-- Rotating
if CommaHeld then
	Camera.CFrame *= CFrame.Angles(0, rotateChange, 0) -- Right
end
if PeriodHeld then
	Camera.CFrame *= CFrame.Angles(0, -rotateChange, 0) -- Right
end

Replace CFrame.Angles with CFrame.fromOrientation. P.S. that only works if you want to do it on y axis

I need it to also look at the angle shown in the video. Right now it’s rolling.

Nevermind, I just rewrote the script a tiny bit and it works now. Thanks for your time!

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