Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

1 comment

0

also i have to go sleep, im sick by the way, and its night so gn, will see replies tomorrow.

2 answers

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.