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

How to detect a Imagelabel color to to copy over to a particle emitter's colorsequence?

I'm currently reverse engineering a script Clonetrooper1019 made when you stand over a Point Light it shows the hue on the ImageColor3, What I basically want to know is I want to make the particleemitter's color change to whatever color the imagecolor3 is currently at. Like if the ImageLabel is red then orange or green it syncs with the ParticleEmitter's Color. I'm very confused because ColorSequence is a bit confusing for me after all custom particles are fairly new. I would like advice on how I would be able to do this .

3 comments

0

I don't believe that is Possible.

0

Actually, it is. I had to look into the Wiki, but I figured it out. More complicated than I expected, lol. Answer below :P

0

cool

2 answers

✓ Accepted answer

Try something like this (Assuming this script is inside the ImageLabel) :

PEmitter=game.Workspace.Part.ParticleEmitter --Gets the particle emitter. Change this to find where it actually is.
Color1=Color3.new(255,255,255) --Set as the base color (Set's first color)

function ColorChange() --Defines a function to fire later
	local Color2=script.Parent.ImageColor3 --Sets second color
	PEmitter.Color=ColorSequence.new(Color1,Color2) --Sets the color
end

ColorChange() --Fires function once

script.Parent.Changed:connect(function()
	ColorChange() --Fires function every time the color is changed in ImageLabel.
end)

This should work if you use it correctly. Anyways, if you have any further questions or problems, let me know in the comments. Hope I helped :P

5 comments

0

Have you tested this?

0

Yea...why'd you downvote?

0

my bad i don't know how to use that feature i thought it was an upvote

0

Oh, lol ok. So did this work for you then?

0

Actually, I downvoted by accident mb sorry.

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