Solution for turning a CFrame into a Vector3 Orientation

Reposting this here because the solution when googling shows the wrong formula (wasted more time than neccessary looking for this solution) - other people should have a easier time looking for this.

Credit: How to get Vector3 Orientation from a CFrame - #15 by Aspecky

3 Likes
function CFrameToOrientation(cf: CFrame)
	local x, y, z = cf:ToOrientation()
	return Vector3.new(math.deg(x), math.deg(y), math.deg(z))
end

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