Position (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
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]].
{{Property|
{{Property|
name = Position
name = Position
Line 8: Line 9:
|}}
|}}


There is also a position property that is used in 2D instances, like GUIs.
 
 
 
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|
{{Property|

Revision as of 21:17, 13 April 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 [[RBX.lua.Part, FlagStand, Explosion, Seat, SpawnLocation (Object)|Part, FlagStand, Explosion, Seat, SpawnLocation]]



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 Position
Description Sets the position of the GUI object in object coordinates.
Member of [[RBX.lua.StarterGui, PlayerGui, Frame, TextLabel, TextButton, TextBox, ImageLabel, ImageButton (Object)|StarterGui, PlayerGui, Frame, TextLabel, TextButton, TextBox, ImageLabel, ImageButton]]