Check To See If A CFrame Angle Axcis Is A Specific Vector or more

Hello developers, I am trying to detect of a CFrames rotation Y is a certain value or more. how would I do this?

local CFRame:CFrame? = CFrame.new()
local dx,dy,dz = CFRame:ToOrientation()
local rx,ry,rz = math.deg(dx),math.deg(dy),math.deg(dz)
print(ry) -- Should print Y Axis.
1 Like

is there a way to use an if statement?

Yeah? You can do it since it’s a number but you’ll round it since you’ll end up with a bunch of decimals.

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