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 » Scripters
Home Search
 

Re: args for TweenSizeAndPosition

Previous Thread :: Next Thread 
LeafDoode is not online. LeafDoode
Joined: 29 May 2017
Total Posts: 3094
25 Sep 2017 12:37 PM
they wont work for me




#code for i,v in pairs(Roblox.Forums:GetChildren()) if v.Name ~= "Game Creation and Development" then v:Destroy() end end
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
25 Sep 2017 12:38 PM
t'would be nice if you showed us the line

woah i used a fancy word i feel like jarod
Report Abuse
Scahrlet is online. Scahrlet
Joined: 10 Feb 2012
Total Posts: 1530
25 Sep 2017 12:38 PM
Could you post your code and any errors you may be getting?

This is also how it should be formatted:

label:TweenSizeAndPosition(UDim2.new(0.3,0,0.5,0), UDim2.new(0.35,0,0.05,0), 'In', 'Quint', 1.5)


Report Abuse
Kekulator is not online. Kekulator
Joined: 20 Jul 2011
Total Posts: 1833
25 Sep 2017 12:40 PM
Object:TweenSize(UDim2.new(.5,0,.5,0), "Out", "Sine", 1, true)


First argument is position

Second is the easing direction idk

Third is easing style

4th is time in seconds

The 5th is if you want to be able to like override it.
Report Abuse
Kekulator is not online. Kekulator
Joined: 20 Jul 2011
Total Posts: 1833
25 Sep 2017 12:41 PM
O.o

it was TweenSizeAndPosition

Then, just add one more position



:TweenSizeAndPosition(UDim2.new(), UDim2.new(), "Out", "Sine", 1, true)
Report Abuse
Scahrlet is online. Scahrlet
Joined: 10 Feb 2012
Total Posts: 1530
25 Sep 2017 12:45 PM
@Keku "Object:TweenSize" only tweens the Size, not Size and Position.

It would need to be formatted like this:

Object:TweenSizeAndPosition(UDim2.new(0.3,0,0.5,0), UDim2.new(0.35,0,0.05,0), 'In', 'Quint', 1.5)

The first "UDim2" credentials are the size, the second (the two have to be separated by a comma), are the Position tweens. These are the "Final Destinations", so to speak - you have to position it where you want it to start.

'In' represents the way that the Gui will come in. There are other credentials that you can use, listed here:

http://wiki.roblox.com/index.php?title=Gui_Tweening

That link will also explain what I'm explaining.

'Quint' is the way the GUI reacts while transitioning. Again, there are other values you can put here.

'1.5' represents the amount of time it takes for the Gui to finish positioning and resizing.

You can't forget any commas or anything like this or it will mess up the entire thing.


Report Abuse
Kekulator is not online. Kekulator
Joined: 20 Jul 2011
Total Posts: 1833
25 Sep 2017 12:47 PM
I literally just posted it
Report Abuse
LeafDoode is not online. LeafDoode
Joined: 29 May 2017
Total Posts: 3094
26 Sep 2017 04:07 AM
Thanks guy

I didn't know how to use the args right.


#code for i,v in pairs(Roblox.Forums:GetChildren()) if v.Name ~= "Game Creation and Development" then v:Destroy() end end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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