Try it in your browserpreview Source

Find First AncestorRoblox✎

Instances node.

Pending review

Find First AncestorInstanceModelName
  • 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= "Model"

Outputs

  • result:Instance?

What it compiles to

luau
print(instance:FindFirstAncestor("Model"))

Not reviewed yet