Cizox
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 42220 |
|
|
| 14 Dec 2013 06:33 PM |
title = script.Parent.Parent.Title bar = script.Parent.Bar
bar:TweenSize(UDim2.new(0, 550, 0, 35), "Out", "Linear", 10)
if bar.Size == UDim2.new(0, 550, 0, 35) then wait(0.1) local titlePosition = coroutine.create(function() title:TweenPosition(UDim2.new(0, 480, 0, -100), "In", "Linear", 2) end) local barPosition = coroutine.create(function() bar.Parent:TweenPosition(UDim2.new(0, 480, 0, 850), "In", "Linear", 2) end) end
coroutine.resume(titlePosition) coroutine.resume(barPosition)
no output. When the Bar Size equals 550, it doesn't run the code after the if. Any help? |
|
|
| Report Abuse |
|
Akbarr
|
  |
| Joined: 02 Nov 2012 |
| Total Posts: 5547 |
|
|
| 14 Dec 2013 06:34 PM |
| It doesnt change size right away, put a wait(5) there and see if it works. |
|
|
| Report Abuse |
|
Akbarr
|
  |
| Joined: 02 Nov 2012 |
| Total Posts: 5547 |
|
|
| 14 Dec 2013 06:35 PM |
| Wait you're taking 10 seconds to do it, so wait(10.5) |
|
|
| Report Abuse |
|
|
| 14 Dec 2013 06:35 PM |
| Tweening doesn't add a wait() for you, you'll have to add wait(10) manually. |
|
|
| Report Abuse |
|
Cizox
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 42220 |
|
|
| 14 Dec 2013 06:36 PM |
| The sizing works. What doesn't work is the TweenPosition. |
|
|
| Report Abuse |
|