IsAncestorOf (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>PurpleKiwi
Added example and fixed spelling error. Remember, it's "DESCENDANT", not "DESCENDENT". Something that is descendent is something that descends. :P
>PurpleKiwi
Added example and fixed spelling error. Remember, it's "DESCENDANT", not "DESCENDENT". Something that is descendent is something that descends. :P
(No difference)

Revision as of 22:31, 8 July 2011

IsAncestorOf( Instance descendant )
Returns boolean is ancestor
Description: Returns true if the object is an ancestor of descendant.
Member of: Instance









Example
print(game.Workspace:IsAncestorOf(game.Workspace.Player.Torso)) --> true