Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Manipulate Gui Selection?

Asked by 7 years ago
Edited 7 years ago

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

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

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.

0
Thanks! You answered my question and gave a useful tip. :D iiTylerSoul 56 — 7y
Ad

Answer this question