Try it in your browserpreview Source

UDimRoblox@lune/roblox✎

Scale is a fraction of the parent; offset is pixels. A UDim is one axis of a UDim2.

Pending review

UDim0Scale0Offset
  • 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

  • Scale:number= 0
  • Offset:number= 0

Outputs

  • result:UDimsplittable
    Splits into Scale, Offset.

What it compiles to

luau
print(UDim.new(0, 0))

Not reviewed yet