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

Why Won't this ParticleEmitter Change Colour?

Asked by 9 years ago

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

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

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)
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 '.' minikitkat 687 — 9y
0
Silly me, It was supposed to be an = not a :. Thanks for telling me to put BrickColor.Color though! minikitkat 687 — 9y
Ad

Answer this question