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

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

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

✓ Accepted answer

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.

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