Name (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer No edit summary |
>JulienDethurens Seriously, stop using the b element to put text in bold. |
||
(23 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{ | <onlyinclude>{{Property | ||
|name = Name | |||
|type = {{type|string}} | |||
|description = The name of the object, which is often used to identify it in the context of its parent. Note that names are '''not''' unique identifiers; multiple children of an object may share the same name. In a script where you want to access an object using a name, for example, {{`|game.Workspace["Brick"]}}, the first object found with that name is that object. This "first object" can be found in the [[Explorer]] menu.Names are great for showing a very brief title or summary of an object. | |||
|object = Instance | |||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{ | |||
name | ==Example== | ||
| | This code would create a new part and change its name to "Brick". | ||
{{lua|=Instance.new('Part', Workspace).Name = "Brick"}} | |||
[[Category:Properties]] | [[Category:Properties]] |
Latest revision as of 01:26, 27 March 2012
Name | |
Type | string |
Description | The name of the object, which is often used to identify it in the context of its parent. Note that names are not unique identifiers; multiple children of an object may share the same name. In a script where you want to access an object using a name, for example, game.Workspace["Brick"], the first object found with that name is that object. This "first object" can be found in the Explorer menu.Names are great for showing a very brief title or summary of an object. |
Member of | Instance |
Example
This code would create a new part and change its name to "Brick".
Instance.new('Part', Workspace).Name = "Brick"