Hello, I'm trying to make a sort of 2.5D game, but when I try rotating it to 90 degrees (so you can see the player properly), it rotates unexpectedly. How do I fix this?


wait(5) -- Staying temporarily
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable

camera.CFrame = camera.CFrame * CFrame.Angles(0,90,0)

I tried math.rad() and got the same result.

4 comments

0

Are you sure you did the math.rad correctly? math.rad is crucial in CFrame.Angles. Try it like this CFrame.Angles(0, math.rad(90), 0))

0

If it still doesn't work, try inversing it, or use CFrame.fromOreintation.

0

For proof, please send a screenshot of the problem

0

Or much better, a recording