Hello there. How would I be able to calculate the radians for X, Y, and Z from a look vector?
This should do the trick…
LV = game.Workspace.Part.CFrame.LookVector
a = CFrame.new(Vector3.new(0,0,0), LV)
local x, y, z = a:ToEulerAnglesYXZ ()
print(x, y, z)
(Alternatively use CFrame:ToEulerAnglesXYZ)
1 Like