The code I always run isn't working for the first time?
Asked by
8 years ago Edited 8 years ago
I'm currently in the making of an info Gui that guides the player on what my place is about, and I'm adding a piece of local script code into the Gui by utilizing the MouseEnter
and MouseLeave
API code functions to have my Gui more unique. I did this by using this API so that the FontSize
of my TextButton
increase from a Size18 to a Size24 font and change the color of the BackgroundColor3
to a darker shade of the same color. The BackgroundColor3
changed into the darker shade of the color as expected, however, the FontSize
did not change at all, and there was no error inside the output
. The code that I used to execute the commands is in a LocalScript
inside two parents called 'Welcome Page' and the child of Welcome Page is 'Background'.
04 | local Player = game:GetService( 'Players' ).LocalPlayer |
05 | local Run = game:GetService( 'RunService' ) |
06 | local Continue = game:GetService( 'StarterGui' ).WelcomePage.Background.ContinueButton |
11 | function MouseEnterContinueButton() |
12 | Continue.FontSize = Enum.FontSize.Size 24 |
13 | Continue.BackgroundColor 3 = Color 3. new( 0 , 170 , 225 ) |
17 | function MouseLeftContinueButton() |
18 | Continue.FontSize = Enum.FontSize.Size 18 |
19 | Continue.BackgroundColor 3 = Color 3. new( 0 , 170 , 255 ) |
26 | Continue.MouseEnter:connect(MouseEnterContinueButton) |
27 | Continue.MouseLeave:connect(MouseLeftContinueButton) |
I'm honestly confused about this, it's worked for me multiple times in the past, and now it's not working. I went back multiple times to check for grammar issues and code issues, and I didn't find one single issue inside my code. Perhaps some fresh eyes can help, can you help me on this issue? Is this a new update that Roblox has once again done, or is this an error on my side? Thanks.