generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

How would I do this?

Previous Thread :: Next Thread 
Nexun is not online. 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 is not online. 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 is not online. 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 is not online. larry5444
Joined: 14 Dec 2007
Total Posts: 12624
14 Aug 2011 02:57 PM
... What's Tweening...???
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
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 is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
14 Aug 2011 03:01 PM
Okay, thanks.
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Aug 2011 03:02 PM
You selected a time, therefore you know...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image