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}
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:
1 | repeat |
2 | gui.Position = gui.Position + UDim 2. new( 0 , 0 , 0.1 , 0 ) |
3 | gui.Size = gui.Size + UDim 2. new( 0.08 , 0 , 0.06 , 0 ) |
4 | wait() |
5 | until gui.Position = = UDim 2. new( 0 , 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...