IsAncestorOf (Method)

From Legacy Roblox Wiki
Revision as of 22:31, 8 July 2011 by >PurpleKiwi (Added example and fixed spelling error. Remember, it's "DESCENDANT", not "DESCENDENT". Something that is descendent is something that descends. :P)
Jump to navigationJump to search
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