Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to Manipulate Gui Selection?

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

✓ Accepted answer

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.

1 comment

0

Thanks! You answered my question and gave a useful tip. :D

This discussion is preserved as it was. New answers, comments, and votes are closed.