canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

Find First Child Which Is ARoblox✎

Matches derived classes too, unlike Find First Child Of Class.

Pending review

Find First Child Which Is AInstanceBasePartClass NamedefaultRecursive
  • 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 list
    Offers 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