Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

UDim2 move to specific position?

So i want to have an Gui with an Image Label that moves to numbered position from one place to the other point "A Pos" And a point "B Pos" so i want it to look like it is sliding across the screen too that point but i don't know how i should do that? do i use a "repeat until" or a "for i = 1,? do" script?

for i = 1,70 do
script.Parent.Positon = script.Parent.Positon + UDMI2.new(0,1,0,1)

1 answer

✓ Accepted answer

Use tweens

script.Parent:TweenPosition(UDim2.new( 0,200,0,200 ),'InOut','Quad',2)

Change values accordingly

This discussion is preserved as it was. New answers, comments, and votes are closed.