Try it in your browserpreview Source

UDim2 from ScaleRoblox@lune/roblox✎

Fractions of the parent, with no pixel offset.

Pending review

UDim2 from Scale0X0Y
  • 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

  • X:number= 0
  • Y:number= 0

Outputs

  • result:UDim2splittable
    Splits into Scale and Offset.

What it compiles to

luau
print(UDim2.fromScale(0, 0))

Not reviewed yet