I'm not sure why this is but if you hover over my gui, it becomes larger. If you stop hovering over it before the "TweenSize" animation plays, it doesn't size down and stays larger.
If you could help that would be awesome!
Player = game.Players.LocalPlayer
Menu = script.Parent
Play = Menu.Play
About = Menu.About
function MouseEnterPlayButton()
Play.FontSize = "Size48"
Play:TweenSize(UDim2.new(0.35, 0, 0.1, 0), "Out", "Sine", 1)
end
function MouseEnterAboutButton()
About.FontSize = "Size48"
About:TweenSize(UDim2.new(0.35, 0, 0.1, 0), "Out", "Sine", 1)
end
function MouseLeftPlayButton()
Play.FontSize = "Size36"
Play:TweenSize(UDim2.new(0.25, 0, 0.1, 0), "Out", "Sine", 1)
end
function MouseLeftAboutButton()
About.FontSize = "Size36"
About:TweenSize(UDim2.new(0.25, 0, 0.1, 0), "Out", "Sine", 1)
end
Play.MouseEnter:connect(MouseEnterPlayButton)
About.MouseEnter:connect(MouseEnterAboutButton)
Play.MouseLeave:connect(MouseLeftPlayButton)
About.MouseLeave:connect(MouseLeftAboutButton)
