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.

local object = script.Parent
object.AnchorPoint = Vector2.new(0.5, 0.5)
object.Position = UDim2.new(0.5, 0, 0.5, 0)
script.Parent.TextLabel.Position = UDim2.new(0.5, 0.5)
wait(2)
object:TweenSize(UDim2.new(0.4, 0, 0.4, 0))
script.Parent.TextLabel.Position = UDim2.new(0.5, 0.5)

Answer this question