Smooth Brick Colour Change Help

Hi! I am currently trying to find a solution to make a colour changing part that only changes from 1 colour to the other, and not a multi coloured part script

Currently, The way I do it is the long way

game.workspace.Light.Color = Color3.fromRGB(255, 255, 255)
wait(0.1)
game.workspace.Light.Color = Color3.fromRGB(250, 250, 250)
wait(0.1)
game.workspace.Light.Color = Color3.fromRGB(245, 245, 245)

and so on and so on until I reach (0, 0, 0)

And then back up to (255, 255, 255) and then it stops there

If there is an easier way then please let me know

1 Like

ofc there is a much better way…
didnt test this but:

for i == 255, 1, -1 do
   local color = Color3.fromRGB(i,i,i)
   wait()
end

and then an invert version

for i == 2, 255, 1 do
   local color = Color3.fromRGB(i,i,i)
   wait()
end

You poor, poor soul. Please do what @nuttela_for1me said.

1 Like

I tested both of your solutions but they dont change colour at all, What I did was get a part and then got a script into it and nothing happened

did u do:

for i == 255, 1, -1 do
   local color = Color3.fromRGB(i,i,i)
   game.workspace.Light.Color = color
   wait()
end

?

1 Like

Thank you so much, It works now

1 Like