So, I want to make it like when you hover over a text button, it expands, if you leave it, it goes back to normal size. Here is a script I'm stuck with, Feel like it should work
here is a repro:
https://imgur.com/a/7iN4X -- Normal, I need to to go bigger when its hovered.
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
local InvenButton = game.StarterGui.ScreenGui.Frame.InvenB
local ShopButton = game.StarterGui.ScreenGui.Frame.ShopB
local BuyButton = game.StarterGui.ScreenGui.Frame.BuyB
local SettingsButton = game.StarterGui.ScreenGui.Frame.SettingB
InvenButton.Mouse:connect(function()
game.StarterGui.ScreenGui.Frame.InvenB:TweenSize(UDim2.new(0, 88, 0, 80))
end)

2 comments
No errors, However the TextButton will not enlarge.
That is the tweenings problem. You probably tweened it wrong