IsDescendantOf (Function): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>ArceusInator
Wrong name
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>
#REDIRECT [[IsDescendantOf (Method)]]
{{Function|
name                  = IsDescendantOf
|arguments            = [[Instance]] ancestor
|returns              = [[Bool|Boolean]] is descendant
|description          = Returns True if the object is an descendant of ''ancestor''
|object              = Global
|}}
</onlyinclude>
 
==Description==
 
Tells whether one of the Parents of the Parents of etc.. of the calling object is the argument
 
==Example==
<pre>
a = Instance.new("Part") --> put a part in workspace
a.Parent = game.Workspace
 
print(a:IsDescendantOf(game)) --> prints true
</pre>

Latest revision as of 15:55, 31 March 2011