Try it in your browserpreview Source

Is Descendant OfRoblox✎

Instances node.

Pending review

Is Descendant OfInstanceAncestor
  • 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
  • Ancestor:Instancemust be wired

Outputs

  • result:boolean

What it compiles to

luau
print(instance:IsDescendantOf(ancestor))

Not reviewed yet