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: | ||
|} | |} | ||
== 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
Usage
print(script.Parent.Name) -- "Workspace" should appear in the output window (only if the script is located under Workspace).