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 TransformRoblox✎

A location and rotation from X-forward, Y-right, Z-up coordinates, as one CFrame. Scale comes out on its own, because a CFrame has none — use it for a part's Size.

Pending review

CFrame from Z-Up TransformCFrame0Location XScale0Location Y0Location Z0Rotation X0Rotation Y0Rotation Z1Rotation W1Scale X1Scale Y1Scale Z28Units Per Stud
  • 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

  • Location X:number= 0
  • Location Y:number= 0
  • Location Z:number= 0
  • Rotation X:number= 0
  • Rotation Y:number= 0
  • Rotation Z:number= 0
  • Rotation W:number= 1
  • Scale X:number= 1
  • Scale Y:number= 1
  • Scale Z:number= 1
  • Units Per Stud:number= 28

Outputs

  • CFrame:CFramesplittable
    Splits into Position, Rotation, or Position and axes, or 12 components.
  • Scale:Vector3splittable
    Splits into X, Y, Z.

What it compiles to

luau
print(CFrame.new(0 / 28, 0 / 28, -(0) / 28, -(0), -(0), 0, 1))

Not reviewed yet