Parent (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
No edit summary
>NXTBoy
Fixed
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}
<onlyinclude>{{Property|
<onlyinclude>{{Property
name = Parent
|name       = Parent
|property = [[Instance|Object]] ''An object's parent''
|property   = [[Instance|Object]] ''An object's parent''
|description = The hierarchical parent of the currently selected object.
|description = The hierarchical parent of the currently selected object.
|object = Global
|object     = Instance
}}</onlyinclude>
}}</onlyinclude>
<br style="clear:both" />
 
{{clear floats}}
 
== Usage ==
== Usage ==
<pre>
<pre>

Revision as of 16:28, 24 December 2010

Parent
Property Object An object's parent
Description The hierarchical parent of the currently selected object.
Member of Instance


Usage

print(script.Parent.Name)
-- "Workspace" should appear in the output window (only if the script
is located under Workspace).

See Also

Instance Hierarchy