Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 05 Sep 2015 03:39 PM |
F2:TweenPosition(UDim2.new(0.05, 0, 0.1, 0), "Out", "Quad", 2, false) F2:TweenPosition(UDim2.new(0.05, 0, 1, 0), "Out", "Quad", 2, false)
It will move the first time, but the second tween won't work.
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
membra
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 6313 |
|
|
| 05 Sep 2015 03:44 PM |
| Try setting 'override' to true, this allows the GUI to attempt a new tween without having to stop the previous one. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2015 03:44 PM |
| call the second one "In" instead of "Out" |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 05 Sep 2015 03:59 PM |
@Toasted it being an in/out isn't the issue.
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2015 04:01 PM |
F2:TweenPosition(UDim2.new(0.05, 0, 0.1, 0), "Out", "Quad", 2, false, function() F2:TweenPosition(UDim2.new(0.05, 0, 1, 0), "Out", "Quad", 2, false) end) |
|
|
| Report Abuse |
|
|
Luxurize
|
  |
| Joined: 31 Mar 2015 |
| Total Posts: 1289 |
|
|
| 05 Sep 2015 04:07 PM |
@Forever Thanks, that fixed it.
“Insane isn't always black or white. We're all pathological, in our own ways.” |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2015 04:09 PM |
The reason you had that issue is because the script doesn't wait for TweenPosition to finish before it continues. The last argument of TweenPosition is a function that is automatically called when the tweening is complete....
When F2 finishes tweening, it will execute the callback function and tween it again |
|
|
| Report Abuse |
|
|