Colour change problem

Hi! Ok so I got a button that when activated through MouseButton1Down, I want it to smoothly fade from the colour Color3.fromRGB(25, 25, 25) to Color3.fromRGB(255, 255, 255)). (Black to White)

I think this should be simple for someone so thanks.

Looking for (kinda) :

button.MouseButton1Down:connect(function()
--Convert the ImageColor3 from 25,25,25 to 255,255,255 SMOOTHLY (like a fade)
end)

you should use tween service here an example:

button.MouseButton1Down:connect(function()
 game:GetService("TweenService"):Create(button,TweenInfo.new(.3),{ImageColor3 = Color3.fromRGB(255, 255, 255)}):Play() ----fading the color to white
end)

Thanks, I knew it was going to be easy for someone.

1 Like