I'm trying to stop the words growing in my hover effect on my menu

I’m trying to make a main menu with a hover effect but every time my mouse hovers over the buttons they grow too big and stay big.

1 Like

No one’s going to bother helping if you don’t provide the code. Please provide the code.

1 Like

Could you tell us how you achieved this effect?

Knowing your process could help the viewers find out what went wrong.

1 Like

No code = no suggestion = useless to post

You can use UITextSizeConstraint to limit the max size of your text, or turn off TextScaled in the label/button’s properties.

If the button is staying too large after your mouse exits, it’s most likely an issue with your tween properties.

I was busy sorry for not reading this but here is the code.

local startSize = UDim2.new(0.15, 0,0.075, 0)
local hoverSize = UDim2.new(0.175, 0,0.085, 0)

script.Parent.MouseEnter:Connect(function()
script.Parent:TweenSize(hoverSize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true)
end)

script.Parent.MouseLeave:Connect(function()
script.Parent:TweenSize(startSize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true)
end)