Hello, I need help in creating a Smooth Color Changing Brick. I've seen some tutorials about brick color change but it does not make a smooth transition, it just instantly changes color. I am currently making a gaming chroma keyboard (Gaming keyboard that changes LED color from time to time, making a rainbow effect.)
Go see the PLACE so you see what I mean.
My current script for it is:
while true do
script.parent.BrickColor = BrickColor.new("Steel blue")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Bright violet")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Magenta")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Neon orange")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Bright yellow")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Lime green")
script.parent.Material = ("Neon")
wait (3)
script.parent.BrickColor = BrickColor.new("Toothpaste")
script.parent.Material = ("Neon")
wait (3)
end
This is what I've just temporarily used as I am still asking for help.

3 comments
Thank you so much, this worked for me! :)
sorry Zenith, I was literally doing it as you were doing, I only saw your answer after posting, but in this it's less of a hassle only using a single for loop, rather than 2. It's also easier to understand for beginners
Yeah, that's true, I agree. IMHO I think that Color3:lerp() is more simple (to me) than Tween because I'm used to Part lerping. I agree on the single loop, though. Although, why do you create a new function for ColorChange? It looks to me as it can just go in the for loop.