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