Try it in your browserpreview Source

Is Ancestor OfRoblox✎

Instances node.

Pending review

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

Outputs

  • result:boolean

What it compiles to

luau
print(instance:IsAncestorOf(descendant))

Not reviewed yet