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

How to detect a particle emitter with a specific color ?

Asked by 4 years ago
Edited 4 years ago

I re-posted my question because i've thought it was resolved (but it wasn't really resolved)... Someone really did help me by giving me a link to a post that explains how to convert a ColorSequence to a Color3 value (right here : https://devforum.roblox.com/t/how-do-you-convert-colorsequence-to-color3/130299)

Thanks to this post, i've made this :

local child = game.Workspace.ParticleEmitter
print(child.Color.Keypoints[1].Value) --it gives me 1, 1, 1

However, i've tried in a script to detect a specific color3 value but it doesn't work. Here is the new script :

local child = game.Workspace.ParticleEmitter
if child.Color.Keypoints[1].Value == Color3.new(1, 1, 1) then
print("It is working")
end

Could someone explain me what's not working ?

0
why would you do "Color3.new" you're legit creating a new color3 just do "if child.Color.Keypoints[1].Value == 1, 1, 1 then" VitroxVox 884 — 4y
0
And it still doesnt work NotZuraax 68 — 4y

Answer this question