Parent (Property): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
Pizzaboxer (talk | contribs) (Created page with "{{CatUp|Properties}} <onlyinclude>{{Property |name = Parent |property = Object ''An object's parent'' |description = The hierarchical parent of the cur...") |
mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
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 = | |object = Global | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Example: | '''Example:''' | ||
<pre> | <pre> | ||
print(script.Parent.Name) | print(script.Parent.Name) |
Latest revision as of 22:18, 23 September 2021
Property | |
---|---|
Name | Parent |
Property | Object An object's parent |
Description: | The hierarchical parent of the currently selected object. |
In Object: | Global |
Example:
print(script.Parent.Name) -- "Workspace" should appear in the output window (only if the script is located under Workspace).