Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fade a colour brick to another?

Asked by 8 years ago

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

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. M39a9am3R 3210 — 8y
0
Or you can use SurfaceGuis. M39a9am3R 3210 — 8y
0
use surfaceguis and color3::lerp evaera 8028 — 8y

Answer this question