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: Using tweensize whilst keeping the position the same?

Previous Thread :: Next Thread 
8BitRetroGamer is not online. 8BitRetroGamer
Joined: 09 Mar 2013
Total Posts: 3546
16 Jun 2016 09:21 AM

startbutton:TweenSize(UDim2.new(0,200,0,100), "Out", "Bounce")

How can I change my script so that the textbutton called "startbutton" changes in size on all 4 sides but is still kept in the same position?

Report Abuse
TheGrayHat is not online. TheGrayHat
Joined: 02 May 2014
Total Posts: 523
16 Jun 2016 09:28 AM
You can't have it shrink in from all sides if you want the position the same. With that being said, you could play around with different settings other than 'Out' or try TweenSizeAndPosition with your position being your origin point.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Jun 2016 10:01 AM
https://scriptinghelpers.org/questions/31510/how-do-i-make-a-gui-tween-from-the-center-of-the-gui
Report Abuse
TheGrayHat is not online. TheGrayHat
Joined: 02 May 2014
Total Posts: 523
16 Jun 2016 10:13 AM
@eLunate

I took his statement literally as "keep the Position property of the GUI the same" :P
Report Abuse
8BitRetroGamer is not online. 8BitRetroGamer
Joined: 09 Mar 2013
Total Posts: 3546
16 Jun 2016 10:25 AM
Thank you! One question though, what do I put in the newdim parameter?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Jun 2016 11:12 AM
It works exactly the same as TweenSize, except you need to explicitly put the GUI to tween as the first argument.
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
16 Jun 2016 11:23 AM
TweenSizeAndPosition :X
Report Abuse
8BitRetroGamer is not online. 8BitRetroGamer
Joined: 09 Mar 2013
Total Posts: 3546
16 Jun 2016 11:47 AM
OK I'll be honest, I still don't quite understand it and I've dug myself a big hole because of my bad scripting skills.

TweenFromCentre(startbutton,startbutton(UDim2.new(0,20,0,20)))

What should I change in the newdim parameter when I am calling the script? I have put the textbutton I want to manipulate called "startbutton" in the "obj" parameter, so what exactly should I put in the newdim parameter in order to make it work?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
16 Jun 2016 12:09 PM
Oh wow you really are something special. IT'S JUST LIKE TWEENSIZE, BUT INSTEAD OF IT BEING A MEMBER METHOD IT'S A NORMAL FUNCTION.

Donkey.
Report Abuse
8BitRetroGamer is not online. 8BitRetroGamer
Joined: 09 Mar 2013
Total Posts: 3546
16 Jun 2016 12:48 PM
OK sorry.
Report Abuse
8BitRetroGamer is not online. 8BitRetroGamer
Joined: 09 Mar 2013
Total Posts: 3546
16 Jun 2016 03:31 PM
I'm sorry and didn't mean to make you angry or upset, sometimes I find certain parts of scripting difficult to understand, but I am working towards improving at my skills and getting better because I love scripting and hopefully something good will come out of it.

Thank you everyone for helping me and being patient with me anyway, I really appreciate it.
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