Yuari
Documentation
Docs/Data types/CFrame.Angles

CFrame.Angles

Creates a rotation CFrame from Euler angles.

Syntax

CFrame.Angles(x?: any, y?: any, z?: any) -> CFrame

Parameters

ParameterTypeDescription
x?anyThe x value used by the call.
y?anyThe y value used by the call.
z?anyThe z value used by the call.

Returns

TypeDescription
CFrameThe returned CFrame.

Description

CFrame.Angles 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(90), 0)
print(cf.LookVector)

Notes

  • Vector and CFrame operations return new value objects.