Try it in your browserpreview Source

Vector2 AxisRoblox@lune/roblox✎

Roblox Types node.

Pending review

Vector2 AxisyAxisAxis
  • 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

  • Axis:string= "yAxis"literalfrom a list
    One of xAxis, yAxis — or anything else, typed in.

Outputs

  • result:Vector2splittable
    Splits into X, Y.

What it compiles to

luau
print(Vector2.yAxis)

Warning

Axis is typed in directly and pasted into the generated source, so it cannot be wired from a value. The editor refuses the connection rather than letting it fail at compile time.

Not reviewed yet