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

Why can't I change the color of this particle emitter?

I have no idea why this isn't working, though it's probably a simple fix, please help.

Note: FlavColor is a Color3 value.

ParticlePart.ParticleEmitter.Color=Color3.new(FlavColor.Value)

Output: Workspace.Essentials.Buttons.Enter.Enter:79: bad argument #3 to 'Color' (ColorSequence expected, got Color3)

1 comment

0

There are two color values in a ParticleEmitter, which are you trying to change

1 answer

✓ Accepted answer

Alright, So you're trying to change the 'color' of a particle emitter, Particle emitters have two colors, a start and an end, This requires a special datatype, called ColorSequence: http://wiki.roblox.com/index.php?title=API:ColorSequence

It'd fit into your script like so:

local colorone = Color3.new(FlavColor.Value)
local colortwo = Color3.new()--Idk define something here if you want, or use the first value

ParticlePart.ParticleEmitter.Color=ColorSequence.new(colorone,colortwo)

3 comments

0

It's not a 'special function' it's a datatype c:

0

oh my god I can't believe I didn't catch that, lmfao

0

Dude tysm

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