Get FieldLuau✎
Reads a field off any value: a module's export, a table key, an instance property.
Pending review
- the language itself, so it works in Roblox and in Lune
- 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
- Object:anymust be wired
- Field:string=
"name"literal
Outputs
- result:any
What it compiles to
luau
print(object.name)
Warning
Field 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