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

How To Prevent Tweening From Moving Buttons/TextLabels In Gui During Scale?

Asked by 4 years ago

I Tried To Set The Anchor Point Of The Text Label To The Center But That Didn't Work, They Just Slide Off The Screen.

1local object = script.Parent
2object.AnchorPoint = Vector2.new(0.5, 0.5)
3object.Position = UDim2.new(0.5, 0, 0.5, 0)
4script.Parent.TextLabel.Position = UDim2.new(0.5, 0.5)
5wait(2)
6object:TweenSize(UDim2.new(0.4, 0, 0.4, 0))
7script.Parent.TextLabel.Position = UDim2.new(0.5, 0.5)

Answer this question