IsAncestorOf (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
added
>SoulStealer9875
Adding clear floats template :)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{|
<onlyinclude>{{Method|name = IsAncestorOf
|<onlyinclude>{{Method|name = IsAncestorOf
|arguments = [[Instance]] '''descendant'''
|arguments = [[Instance]] '''descendent'''
|returns = [[boolean]] ''is ancestor''
|returns = [[boolean]] ''is ancestor''
|description = Returns true if the object is an ancestor of ''descendent''.
|description = Returns true if the object is an ancestor of ''descendant''.
|object = [[Instance]]
|object = Instance
|}}</onlyinclude>
}}</onlyinclude>
|}
 
 
{{clear floats}}
 
 
{{Example|<pre>
print(game.Workspace:IsAncestorOf(game.Workspace.Player.Torso)) --> true
</pre>}}
[[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