I need this for a positioning script so that I can add 100 to the x position. For example,
local xpos= Gui.Xposition --lets say Xposotion would give the current x position or x offset of the gui
Gui.Position=(0,xpos+100,0,0)
I need this for a positioning script so that I can add 100 to the x position. For example,
local xpos= Gui.Xposition --lets say Xposotion would give the current x position or x offset of the gui
Gui.Position=(0,xpos+100,0,0)
There is a property of every GUI object named AbsolutePosition. This gives the position of the GUI on the screen in terms of pixels.
local xpos = Gui.AbsolutePosition.X
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
ok thanks for the quick answer
No problem :)
All position and size properties that I can think of have X and Y (and sometimes Z) 'subproperties'. Just remember that they're read-only, so part.Position.X = 100 won't work.