Find First Child Which Is ARoblox✎
Matches derived classes too, unlike Find First Child Of Class.
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
- Class Name:string=
"BasePart"from a listOffers 625 values to pick from, and takes anything else typed in. - Recursive:boolean=
false
Outputs
- result:BasePart?
What it compiles to
luau
print((instance:FindFirstChildWhichIsA("BasePart") :: BasePart?))
Not reviewed yet