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

How do i script a particle emitter with a color sequence?

Asked by 5 years ago
Edited 5 years ago

I want to create a particle emitter with a color sequence but it keeps giving me an error.

Script:

p.Color = ColorSequence.new({
    ColorSequenceKeypoint.new(0.1,Color3.new(85,255,0)),
    ColorSequenceKeypoint.new(0.25,Color3.new(0,255,255)),
    })

It gives me this error: ColorSequence: color value out of range

i don't really know how to fix it. Can someone please help me?

1 answer

Log in to vote
0
Answered by 5 years ago

Color3.new only works with numbers ranging from 0-1, hence why it's saying your values are out of range. Use Color3.fromRGB instead, which uses 0-255.

Ad

Answer this question