Parent (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>GoldenUrg
Added link
Line 9: Line 9:
|}
|}


Example:
== Usage ==
<pre>
<pre>
print(script.Parent.Name)
print(script.Parent.Name)
Line 15: Line 15:
is located under Workspace).
is located under Workspace).
</pre>
</pre>
== See Also ==
[[Instance Hierarchy]]


[[Category:Properties]]
[[Category:Properties]]

Revision as of 04:07, 14 June 2010

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

Usage

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

See Also

Instance Hierarchy