Parent (Property)

From Legacy Roblox Wiki
Revision as of 17:08, 3 August 2008 by >Pspdude40 (Realized example mistake)
Jump to navigationJump to search
Parent
Property Object An object's parent
Description The hierarchical parent of the currently selected object.
Member of Global

Example:

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