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

How to stop a TextButton from darkening when hovered over?

script.Parent.Selected = false

I set the TextButton Selected to be false, but when you hover the mouse over the TextButton, it still darkens.

I don't want the TextButton to darken at all, I want it to stay it's set color.

2 answers

✓ Accepted answer

That's a great question. The TextButton object has a specific value called AutoButtonColor. You can set this to false and the button will stay the same color, no script needed!

You can read more about the properties of a TextButton on the ROBLOX wiki page.

2 comments

1

ninja'd boi

0

*cri

The GuiButton class already has a property designed for that called AutoButtonColor that can be set with a boolean.

"If true, the button will automatically change color when the mouse hovers over or clicks on it."

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