Position (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
No edit summary
>Mr Doom Bringer
No edit summary
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}
 
{|
When used in 3D objects, such as [[Part]]s and other items, this property is a [[Vector3]].
|When used in 3D objects, such as [[Part]]s and other items, this property is a [[Vector3]].
{{Property|
|-
name = Position
|{{:Position (Property)/Vector3}}
|property = [[Vector3]] ''Position''
|-
|description = Stores the current location of the object in world coordinates.
|When used in 2D GUI objects, such as [[RBX.lua.TextButton (Object)|TextButton]]s, this property is a [[UDim2]] instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects.
|object = [[RBX.lua.Part (Object)|Part]], [[RBX.lua.FlagStand (Object)|FlagStand]], [[RBX.lua.Explosion (Object)|Explosion]], [[RBX.lua.Seat (Object)|Seat]], [[RBX.lua.SpawnLocation (Object)|SpawnLocation]]
|-
|}}
|{{:Position (Property/UDim2}}
 
|}
 
 
 
When used in 2D GUI objects, such as [[RBX.lua.TextButton (Object)|TextButton]]s, this property is a [[UDim2]] instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects.
 
{{Property|
name = Position
|property = [[UDim2]] ''Position''
|description = Sets the position of the GUI object in object coordinates.
|object = [[RBX.lua.StarterGui (Object)|StarterGui]], [[RBX.lua.PlayerGui (Object)|PlayerGui]], [[RBX.lua.Frame (Object)|Frame]], [[RBX.lua.TextLabel (Object)|TextLabel]], [[RBX.lua.TextButton (Object)|TextButton]], [[RBX.lua.TextBox (Object)|TextBox]], [[RBX.lua.ImageLabel (Object)|ImageLabel]], [[RBX.lua.ImageButton (Object)|ImageButton]]
|}}
 
[[Category:Properties]]
[[Category:Properties]]

Revision as of 22:49, 13 May 2010

When used in 3D objects, such as Parts and other items, this property is a Vector3.
Position
Property Vector3 Position
Description Stores the current location of the object in world coordinates.
Member of BasePart, Explosion
When used in 2D GUI objects, such as TextButtons, this property is a UDim2 instead. This is because 2D 'HUD' objects need to be placed differently on the screen than 3D 'World' objects.
Position (Property/UDim2