API:Class/Instance/GetDescendants


GetDescendants

Function of Object Icon.pngInstance
array<Instance> GetDescendants ()

Returns: array<Instance>
Description: Returns an array containing all of the descendants of the instance.

Returns an array containing all of the descendants of the instance. In other words, this returns the children of this instance, and the children of those children, and so on. Returns in preorder traversal, or in other words, where the parents come before their children, depth first.