Parent (Property)

From ROBLOX Wiki
Revision as of 12:43, 11 December 2024 by PRG (talk | contribs) (Created page with "{{CatUp|Properties}} <onlyinclude>{{Property |name = Parent |property = Object ''An object's parent'' |description = The hierarchical parent of the currently selected object. |object = Global }}</onlyinclude> '''Example:''' <pre> print(script.Parent.Name) -- "Workspace" should appear in the output window (only if the script is located under Workspace). </pre> Category:Properties")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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).