Hover Button Shadow

For an example, if you hover over a button, how can you give it that dim type of shadow when the mouse is on that button?

2 Likes

You could say…
script.Parent.MouseEnter:Connect(function()
script.Parent.BackgroundColor3 = --Darker Color--
end

script.Parent.MouseLeave:Connect(function() Using
script.Parent.BackgroundColor3 = --Default Color--
end

6 Likes

This is a solid way to do it. MouseEnter and MouseLeave can be unreliable, though. Boatbomber has a nice module to fix this Misc Scripts & Modules - My smaller projects

1 Like

Wait what? I wrote a replacement for ClickDetectors on BaseParts.

You’re thinking of MouseOver by @Crazyman32 from Aug '18.

This is a bland intro and doesn’t explain what you want

1 Like

Ok that makes sense now lol. I was like, if this is for GUIs, why does it mention ClickDetectors? Thanks for clarifying.