Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

How do I move a GUI?

Asked by 10 years ago

How do I make a GUI come in from the right side and move, then go away?

Current Position(Final Spot) {0, 0}, {0.5, 0}

Current Size {0.400000006, 0}, {0.300000012, 0}

2 answers

Log in to vote
Answered by
Tesouro 407 Moderation Voter
10 years ago

Tween is the best way, but if you can't use it (for any reason), make a loop. Repeat is a good alternative, an example:

    gui.Position = gui.Position +, 0, 0.1, 0)
    gui.Size = gui.Size +, 0, 0.06, 0)
until gui.Position ==, 0, 0.5, 0) -- it will repeat 5 times

It does the same thing, but it's more difficult and you need to synchronize the values. But if you want to walk on the wild side...

Log in to vote
Answered by 10 years ago

Take a look at TweenPosition

Answer this question