Hello! Recently i’ve been trying to get the X orientation of a camera, but when looking in certain directions, it returns messed numbers, what is wrong here? I haven’t found anything useful in the DevForum, and haven’t found a solution for this.
local x = workspace.CurrentCamera.CFrame:ToEulerAnglesXYZ()
x = math.deg(x)
print(x)
This is the number that should be in the output:
–
This is what the output shows: