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

how to put new color at button when mouse are in the button? [closed]

Asked by
imedin 0
9 years ago

so all what i want is to when i put my mouse on the textbutton i get new color and when i left it go to normal

Closed as Not Constructive by YellowoTide and woodengop

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
drew1017 330 Moderation Voter
9 years ago

There are some events you should know about called MouseEnter and MouseLeave for TextButtons, ImageLabels etc that you can use to achieve this effect. Something like this:

function entered()
    gui.Color = Color3.new(color you want)
end

function left()
    gui.Color = Color3.new(color you want)
end

gui.MouseEnter:connect(entered)
gui.MouseEnter:connect(left)
0
ok thx imedin 0 — 9y
Ad