Nexun
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 371 |
|
|
| 14 Aug 2011 02:49 PM |
Let's say I'm tweening a GUI's Position by using the :TweenPosition() method, like so:
GUI:TweenPosition(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 3, false, nil)
Let's also say that I wanted to print the words "Hello World!" into the output once it was done tweening.
GUI:TweenPosition(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 3, false, nil) print("Hello World!")
How would I make the words Hello World! print only when the tweening process is done? The only way I can think of right now is this:
GUI:TweenPosition(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 3, false, nil) repeat wait() until GUI.Position == UDim2.new(.5, 0, .5, 0) print("Hello World!")
|
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 14 Aug 2011 02:54 PM |
Put this on local: script.Parent.Button1:TweenPosition(UDim2.new(0 , 400, 0 , 200) wait(0.2) Thats an example when you click a Button it will slide there. But I forgot the whoe script. :O |
|
|
| Report Abuse |
|
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 14 Aug 2011 02:56 PM |
GUI:TweenPosition(UDim2.new(.5, 0, .5, 0), "Out", "Quad", 3, false, nil) wait(3) print("Hello World") |
|
|
| Report Abuse |
|
|
larry5444
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 12624 |
|
| |
|
|
| 14 Aug 2011 02:58 PM |
@larry...
Not the right thread to ask.
@thread maker
Just wait the tween time argument, then say wait() to have it print once its done. |
|
|
| Report Abuse |
|
|
Nexun
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 371 |
|
| |
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 14 Aug 2011 03:02 PM |
| You selected a time, therefore you know... |
|
|
| Report Abuse |
|
|