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
>SoulStealer9875
Adding clear floats template :)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|object = Instance
|object = Instance
}}</onlyinclude>
}}</onlyinclude>
<br><br><br><br><br><br><br><br>
 
 
{{clear floats}}
 
 
{{Example|<pre>
{{Example|<pre>
print(game.Workspace:IsAncestorOf(game.Workspace.Player.Torso)) --> true
print(game.Workspace:IsAncestorOf(game.Workspace.Player.Torso)) --> true
</pre>}}
</pre>}}
[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 15:42, 10 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