So, you probably know that guis usually turn darker when you hover your mouse over them.
How would I make them turn lighter when you hover your mouse over them?
I've tried to do this:
button.MouseEnter:connect(function() button.BackgroundColor3 = Color3.new(255/255,255/255,255/255) end)
but the gui only turns lighter after you stop hovering your mouse over it.
Please help. Thanks
Probably because the AutoButtonColor
property is enabled. If you disable that, you should see a difference.
Also, if you want to write the RGB colors as integers, you can use Color3.fromRGB
and pass them as arguments without needing to divide. In this particular case, you don't need to divide at all. Using Color3.fromRGB(255,255,255)
or Color3.new(1,1,1)
would work the same way.