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