Yuari
Documentation
Docs/Data types/CFrame:ToEulerAnglesXYZ

CFrame:ToEulerAnglesXYZ

Returns the CFrame rotation as Euler angles.

Syntax

CFrame:ToEulerAnglesXYZ() -> any

Parameters

This function takes no parameters.

Returns

TypeDescription
anyThe CFrame rotation as Euler angles

Description

CFrame:ToEulerAnglesXYZ is part of the Data types library. Vector and CFrame values are VM userdata with operator overloads; operations return new value objects.

The operation is performed immediately using the arguments supplied at the call site.

Example

local cf = CFrame.Angles(0, math.rad(45), 0)
print(cf:ToEulerAnglesXYZ())

Notes

  • Vector and CFrame operations return new value objects.