I'm changing an image color when the mouse is over, and when it leaves. Currently, my script is printing, but it's not changing the colors at all.
local FrontColor = Color3.fromRGB(50, 188, 255)
local BackColor = Color3.fromRGB(42, 162, 217)
local Button = script.Parent
local FrontIcon = game.StarterGui.ScreenGui.ShopIcon
function MouseOver()
print("Color changing!")
FrontIcon.ImageColor3 = BackColor
end
function MouseLeave()
print("Color changing back!")
FrontIcon.ImageColor3 = FrontColor
end
Button.MouseEnter:Connect(MouseOver)
Button.MouseLeave:Connect(MouseLeave)

1 comment
I dont think images can change colours.. Have you tried using 2 images (each one different colours) and switching between them?