Yet Another MouseEnter/MouseLeave Function Problems?
I've been doing MouseEnter
and MouseLeave
functions for Guis on Roblox for years now, and it hasn't failed me one time (except spelling errors, but that's not the point), however, the code I have for the menu I am creating for fun (which, by the way, is not fun now) isn't working properly, well, the Mouse functions aren't. I checked back multiple times to see if I had any errors in my spelling, locals
, etc. and found no error whatsoever, and this is getting me on my nerves now. In StarterGui
, I have a ScreenGui
called 'MainMenu', and inside the ScreenGui
, I have a Frame
named 'Background', and in the Frame
, I have four objects: two TextButtons
I have is named 'StartButton' and 'AboutButton', a TextLabel
named 'Title', and a LocalScript
called 'MenuCode'. Here's my code in the LocalScript
04 | local Players = game:GetService( 'Players' ).LocalPlayer |
05 | local StarterGui = game.StarterGui |
06 | local Menu = StarterGui.MainMenu |
07 | local Background = Menu.Background |
08 | local Start = StarterGui.MainMenu.Background.StartButton |
09 | local About = StarterGui.MainMenu.Background.AboutButton |
10 | local Title = StarterGui.MainMenu.Background.Title |
16 | function MouseEnterStartButton() |
17 | Start.FontSize = Enum.FontSize.Size 32 |
21 | function MouseLeaveStartButton() |
22 | Start.FontSize = Enum.FontSize.Size 28 |
26 | function MouseEnterAboutButton() |
27 | About.FontSize = Enum.FontSize.Size 32 |
31 | function MouseLeaveAboutButton() |
32 | About.FontSize = Enum.FontSize.Size 28 |
39 | Start.MouseEnter:connect(MouseEnterStartButton) |
40 | Start.MouseLeave:connect(MouseLeaveStartButton) |
43 | About.MouseEnter:connect(MouseEnterAboutButton) |
44 | About.MouseLeave:connect(MouseLeaveAboutButton) |
This issue is getting on my nerves since I am always able to do this, and now Roblox is acting on me now. Can you help me fix this issue?