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

How to make a frame color fade, like BackroundColor3, along with ImageColor?

Asked by 7 years ago

Hello!

So, I'm developing a emo kinda dodge charger for myself lol, and I need a bit help on how to make the front lights work. I mean, they work good and all, https://gyazo.com/e4064c4860088f7143f4ec64415a3c18 but like, I want it to like make it fade, because after it turns to red, I'm gonna then just make it fade to red, green, and blue.

To give you a quick overall what Mainveh is, and FB

MainVeh = seat.Parent.lightbar

The FB is the part in which I've added a led, frame, and image to make the lighting.

So like MainVeh.FB1.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255) MainVeh.FB1.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)

Here's the code that I need help with, to get the faded colors.

MainVeh.FB1.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB2.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB3.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB4.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB5.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB6.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB7.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB8.led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
            wait(0.1)

            MainVeh.FB1.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB2.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB3.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB4.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB5.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB6.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB7.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            MainVeh.FB8.led.Frame.ImageLabel.ImageColor3 = Color3.new(255/255, 0/255, 0/255)
            wait(0.1)
0
also i have to go sleep, im sick by the way, and its night so gn, will see replies tomorrow. XxGTGGamingxX 0 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

i'm not sure what you mean but heres a way to simplify all that

for i = 1, 8 do
    MainVeh["FB"..i].led.Frame.BackgroundColor3 = Color3.new(255/255, 0/255, 0/255)
    wait(0.1)
end
Ad
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Maybe you get the color3’s and average the rgb values so you basically blend it?

Answer this question