It is most accurate in one direction, and it doesn't seem that accurate in others?! How do I get it like that in all directions?
Demonstration - https://gyazo.com/f17587aced74abdf88acbd0689f77e44
if Camera.CFrame.LookVector.Z <= 0 and Camera.CFrame.LookVector.X > 0 then
print("-90 to 0")
D = (Camera.CFrame.LookVector.X * -90)
elseif Camera.CFrame.LookVector.Z <= 0 and Camera.CFrame.LookVector.X <= 0 then
print("0 to 90")
D = (Camera.CFrame.LookVector.X * -90)
elseif Camera.CFrame.LookVector.Z > 0 and Camera.CFrame.LookVector.X <= 0 then
print("90 to 180")
D = 180 - (Camera.CFrame.LookVector.X * -90)
elseif Camera.CFrame.LookVector.Z > 0 and Camera.CFrame.LookVector.X > 0 then
print("180 to -90")
D = -180 + (Camera.CFrame.LookVector.X * 90)
end
