Hi,

I have a brick on my game and I want it to be able to change colour, but I want it to fade into another colour? I have been off from Roblox for a while and my scripting has become a bit loopy, I am unsure as of how I am able to do this.

The name of the brick is colourchanger and I want it so that for example it is red, then it automatically turns to green, then blue, then orange or whatever colour that it randomly decides? But as well as it picking a random colour, I want it to be able to fade into that colour? Any help?

Kind regards, Kieran

3 comments

0

What you may be able to do is use the .Color property of BrickColor values to get a Color3 value you have the script randomly select. Then have the script use the new Color3 lerp function to move to the randomly selected color. Setting the BrickColor of the part equal to the Color3 since the Color3 will round to the near BrickColor value.

0

Or you can use SurfaceGuis.

0

use surfaceguis and color3::lerp