I'm trying to do so when you hover your mouse over a textbuttons it tweens it's size to expand in all directions, but kinda just expands to it's left and below. This is the script:
script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSize(UDim2.new(0,250,0,100),"Out", "Bounce")
end)
script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSize(UDim2.new(0,200,0,50),"Out", "Bounce")
end)
Obviously, I need to change the numbers in between the brackets, but I don't know what numbers should I use. (After repost) I tried these methods from answers: Tween the size and the position at the same time, change anchor point to the centre, and the last I didn't really understand, so I'm just going to copy the answer here: "Make the y size cover all the screen then you just need to change the y size (with textscaled on).. that's how i do it, it kinda move up and down (and it's at the middle)"

1 comment
Thank you!