Parent (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
Fixed
>Camoy
No edit summary
Line 1: Line 1:
{{CatUp|Properties}}
<onlyinclude>{{Property
<onlyinclude>{{Property
|name        = Parent
|name        = Parent
Line 9: Line 8:
{{clear floats}}
{{clear floats}}


== Usage ==
{{Example|<pre>
<pre>
print(script.Parent.Name)
print(script.Parent.Name)
-- "Workspace" should appear in the output window (only if the script
-- "Workspace" should appear in the output window (only if the script
is located under Workspace).
is located under Workspace).
</pre>
</pre>}}


== See Also ==
== See Also ==

Revision as of 13:53, 29 January 2011

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


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


See Also

Instance Hierarchy