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

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

Asked by
SuperFryX 130
9 years ago

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)

0
There are two color values in a ParticleEmitter, which are you trying to change NotSoNorm 777 — 9y

1 answer

Log in to vote
2
Answered by
NotSoNorm 777 Moderation Voter
9 years ago

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)
0
It's not a 'special function' it's a datatype c: YellowoTide 1992 — 9y
0
oh my god I can't believe I didn't catch that, lmfao NotSoNorm 777 — 9y
0
Dude tysm Qwertoony 70 — 3y
Ad

Answer this question