Get AttributeRoblox✎
Returns nil when the attribute is not set, which is how you test for one.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
- 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
- Instance:Instancemust be wired
- Name:string=
"Health"
Outputs
- result:any
What it compiles to
luau
print(instance:GetAttribute("Health"))
Not reviewed yet