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
 

Re: Tweening

Previous Thread :: Next Thread 
TradeDEV is not online. TradeDEV
Joined: 15 Jun 2014
Total Posts: 299
20 Jun 2014 01:35 PM
http://www.roblox.com/Gui-Test-place?id=161617508

Can someone test my Gui, make sure the tabs work(Everything is kinda moved around), also does anyone know where i can learn tweening?

@TradeDEVRBLX
Report Abuse
jakej78b is not online. jakej78b
Joined: 09 Mar 2011
Total Posts: 813
20 Jun 2014 01:36 PM
Tweening seems self-explanatory to me. Just use it and input the position you want it to tween to.
Report Abuse
TradeDEV is not online. TradeDEV
Joined: 15 Jun 2014
Total Posts: 299
20 Jun 2014 01:37 PM
What is tween though, how do I write it in a script?

@TradeDEVRBLX
Report Abuse
DrMathematica is not online. DrMathematica
Joined: 29 Aug 2008
Total Posts: 27268
20 Jun 2014 01:40 PM
You can use the Wiki to find all the Tweening methods available. One is to tween the position. Tween basically means to smoothly move from one place to another.

GUI:TweenPosition(UDim2.new(.5,0,.5,0))

Will tween the GUIs position to .5,0,.5,0
Report Abuse
TradeDEV is not online. TradeDEV
Joined: 15 Jun 2014
Total Posts: 299
20 Jun 2014 01:41 PM
So if I click a button my Gui should be out of frame then when button is click it tweens it into frame?

@TradeDEVRBLX
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
20 Jun 2014 01:42 PM
frame:TweenPosition(UDim2.new(0,0,0,0),"Out","Sine",0.3)
frame:TweenSize(UDim2.new(0,100,0,100),"Out",Sine",0.5)

First argument is the UDim2 value, second is "Out", "In", or "InOut" I think, the third one is the tweening style, the last is the float.
Report Abuse
TradeDEV is not online. TradeDEV
Joined: 15 Jun 2014
Total Posts: 299
20 Jun 2014 01:42 PM
Thanks.

@TradeDEVRBLX
Report Abuse
Locard is not online. Locard
Joined: 13 Apr 2014
Total Posts: 3516
20 Jun 2014 01:43 PM
You can do TweenSizeAndPosition as well.
Report Abuse
TradeDEV is not online. TradeDEV
Joined: 15 Jun 2014
Total Posts: 299
20 Jun 2014 01:44 PM
That makes it easier, just tween the size up and away from button making it look like I opened it from where i clicked.

@TradeDEVRBLX
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