CFrame.Angles
Creates a rotation CFrame from Euler angles.
Syntax
CFrame.Angles(x?: any, y?: any, z?: any) -> CFrame
Parameters
| Parameter | Type | Description |
|---|---|---|
x? | any | The x value used by the call. |
y? | any | The y value used by the call. |
z? | any | The z value used by the call. |
Returns
| Type | Description |
|---|---|
CFrame | The 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.