Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this camera rotation using CFrame.Angles()?

Asked by 2 years ago

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.

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)) T3_MasterGamer 2189 — 2y
0
If it still doesn't work, try inversing it, or use CFrame.fromOreintation. T3_MasterGamer 2189 — 2y
0
For proof, please send a screenshot of the problem T3_MasterGamer 2189 — 2y
0
Or much better, a recording T3_MasterGamer 2189 — 2y

Answer this question