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