Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I tween a GUI's size but keeps its position the same?

Asked by 5 years ago

I so far have this and I tried using TweenSizeAndPosition. I've read the wiki 2 or 3 times but can't seem to figure out what I've done incorrectly.

frame:TweenSize(UDim2.new(0.126,0,0.213,0), 'Out', Enum.EasingStyle.Bounce, 1, true)
0
The code that you've posted keeps it position the same, as the position is the TOP LEFT corner, not the CENTER. To move it as if it's the center, you'll have to either set the anchor point to 0.5,0.5, or also change the position. RubenKan 3615 — 5y
0
thank you it worked! VeryDarkDev 47 — 5y

Answer this question