How come my color changing tween is not working on particle emitters?

I’m trying to make a tween that changes the color of my particle emitters. My script works on parts just not particle emitters. Any ideas how to fix it?


Any help is appreciated!

I’m relatively new to tweens so sorry if I’m missing something obvious.

Use Color sequence instead of Color3.

how exactly would i use this in this case?

ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
    ColorSequenceKeypoint.new(1, Color3.new(1,0,0))
}

but where would i put this script in my tween script?

you just put this anywhere in the script, no tween needed.

image
replace the Color3.fromRGB

Wait I am pretty sure you can’t tween it. Like it isn’t a tweenable property

but how would the script know what to apply the color to? sorry i have never used a color sequence before.

oh. then how would i change its color?

You are right, it can’t be anywhere since it wouldn’t do anything

Sadly you can’t tween it. You can just do this:

emit.Color = ColorSequence.new{
	ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
	ColorSequenceKeypoint.new(1, Color3.new(1,0,0))
}

2 Likes

Thanks that solution seemed to work! I have been trying to do this for a while now!

Oh i do have 1 question does this color sequence last for an infinite amount of time?

So the way a particle works is there is a length (lifetime). This is how long the particle will exist. In this case it will be between 5-10 seconds
image

The color sequence lasts that lifetime, this means I can do this:

Where 1 is red and 0 is white.

ok thank you!!! this helped alot!

1 Like