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
- 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:CFramesplittableSplits into Position, Rotation, or Position and axes, or 12 components.
- Scale:Vector3splittableSplits 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