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

Why Won't this ParticleEmitter Change Colour?

Hello! So I am trying something with Particle Emitters and I have come across an unexplainable problem. So basically I need this script to change the Particle Colour to the Same Colour as the brick it is in. But it doesn't change it and I am let with this error: 13:28:13.243 - Workspace.Part.Script:5: function arguments expected near '.'

s = script.Parent

Par = s.Particle

Par.Color:ColorSequence.new(s.BrickColor)

No Idea what is wrong... Thanks for the help!

Edit:

Sily me it was supposed to be Par.Color = ColorSequence.new(s.BrickColor.Color) not Par.Color:ColorSequence.new(s.BrickColor)

1 answer

✓ Accepted answer

You need the Color3, and to get the Color3 from a BrickColor, add ".Color" So...

s = script.Parent

Par = s.Particle

Par.Color:ColorSequence.new(s.BrickColor.Color)

2 comments

0

Okay I get where this is going but it still errors and doesn't change the colour. It comes up with this still: 13:37:29.094 - Workspace.Part.Script:5: function arguments expected near '.'

0

Silly me, It was supposed to be an = not a :. Thanks for telling me to put BrickColor.Color though!

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