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

How to stop a TextButton from darkening when hovered over?

Asked by 7 years ago
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

Log in to vote
1
Answered by 7 years ago

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.

1
ninja'd boi LegitimatlyMe 519 — 7y
0
*cri ChipioIndustries 454 — 7y
Ad
Log in to vote
2
Answered by 7 years ago

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."

Answer this question