How do l loop a TweenPosition?
Asked by
8 years ago Edited 8 years ago
I learned how to use TweenPosition and I decided I wanted my Gui to loop infinitely.
But...
01 | function ZipOnThrough() |
02 | while true or false do |
03 | script.Parent:TweenPosition(UDim 2. new( 0 , 893 , 0 , 0 ), "Out" , "Quad" , 4 , true ) |
05 | script.Parent:TweenPosition(UDim 2. new( 0 , 0 , 0 , 0 ), "In" , "Quad" , 4 , true ) |
10 | script.Parent.MouseButton 1 Click:connect(ZipOnThrough) |
It doesn't work. It would just go to the coordinates "0, 893,0, 0" but then it would just stop. I would really appreciate the help.