canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

CFrame from Z-Up RotatorRoblox✎

A rotation from pitch, yaw and roll in degrees, as an X-forward, Z-up tool gives them, as a CFrame at the origin.

Pending review

CFrame from Z-Up Rotator0Pitch0Yaw0Roll
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Pitch:number= 0
  • Yaw:number= 0
  • Roll:number= 0

Outputs

  • result:CFramesplittable
    Splits into Position, Rotation, or Position and axes, or 12 components.

What it compiles to

luau
print(CFrame.fromEulerAnglesYXZ(math.rad(0), -math.rad(0), -math.rad(0)))

Not reviewed yet