How To Get Camera's Orientation?

I want to get the Camera’s Orientation, I have tried workspace.CurrentCamera.CFrame:ToEulerAnglesXYZ() however it gives me these values (Example: 0.288451611995697 -0.20102249085903168 0.05917876586318016) and I’m not sure what to do with them, nor what they are as they do not match what I see in the Camera in Workspace.

The reason why I need to get this Value, is because I want to rotate a Part based off the Camera’s Rotation.

1 Like

NVM got it, :ToEulerAnglesXYZ() gives the Values in Radians, and to convert to Degrees (What you see in Properties) you’d do something like this

local X, Y, Z = Camera.CFrame:ToEulerAnglesXYZ()
X = math.deg(X)
Y = math.deg(Y)
Z = math.deg(Z)

Better method: How can I make this Block, which is always supposed to face opposite to the Camera, more accurate? - #2 by Nogora22

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.