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

UDim2 WidthRoblox@lune/roblox✎

The same UDim as X. Both names exist because a size and a position read differently.

Pending review

UDim2 WidthUDim2.new()UDim2
  • Roblox's, and Lune's too — a Lune graph needs @lune/roblox required for it
  • 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

  • UDim2:UDim2= UDim2.new()splittable
    Splits into Scale and Offset.

Outputs

  • result:UDimsplittable
    Splits into Scale, Offset.

What it compiles to

luau
print(UDim2.new().Width)

Not reviewed yet