|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Jun 2016 10:25 AM |
| Thank you! One question though, what do I put in the newdim parameter? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|