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