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

Color Property of Particle Emmitters?

Asked by
RoyMer 301 Moderation Voter
9 years ago

What is the colour property of Particle Emmitters?

.Color? .Start? .End?

2 answers

Log in to vote
5
Answered by 9 years ago

The ParticleEmitter uses ColorSequence:

Wiki Link

ParticleEmitter.Color  = ColorSequence.new(color1,color2)
-- or for one Color, use this
ParticleEmitter.Color = ColorSequence.new(color1)

color1 and color2 can be returned as a Color3 Value. Color3.new is not required. If you want to use a BrickColor, do the following,

local BrickColor = game.Workspace.Part.BrickColor -- basically put any brickColor value here
local Color3 = BrickColor.Color-- Using The Color Property of BrickColor, we can get the Color3 value of BrickColor 
ParticleEmitter.Color = ColorSequence.new(Color3)
0
Sorry, didn't see your answer while typing mine. Spongocardo 1991 — 9y
0
Can't get it to work. RoyMer 301 — 9y
0
I sent you a PM. HungryJaffer 1246 — 9y
0
Actually got it to work, Thanks alot for your help!!! RoyMer 301 — 9y
Ad
Log in to vote
1
Answered by 9 years ago

The Color property of ParticleEmitters takes a ColorSequence value. ColorSequence takes up to two Color3 values and can be used to fade between one colour to another in ParticleEmitters.

If you only want to use 1 Color3 argument, do this:

ColorSequence.new(Color3.new(1,1,1)) --Makes a new ColorSequence, the color white is both the start and end color.

For 2 Color3 arguments, do this:

ColorSequence.new(Color3.new(1,1,1),Color3.new(0,0,0)) --Makes a new ColorSequence, white as the start color and black as the end color.

I hope my answer helped you. If it did, be sure to accept it.

0
Cannot get it to work RoyMer 301 — 9y

Answer this question