What does this mean? part 3

i was going through

and i saw this line in the script:

object.Position = UDim2.new(0, -object.Size.X.Offset, 0.5, 0)

the whole script is:

local object = script.Parent
object.AnchorPoint = Vector2.new(0.5, 0.5)
object.Position = UDim2.new(0, -object.Size.X.Offset, 0.5, 0)

wait(2)

object:TweenPosition(UDim2.new(0.5, 0, 0.5, 0))

or you can just go to the link sent and go to Position at the right side of your screen
anways… what does it mean??

Please read before you create a topic, it’s already explained in the guide.

1 Like

it changes the position of an ui object to
x scale: 0
x offset: opposite of the current offset
y scale: .5
y offset: 0

1 Like