I need help getting this script to work. I have a NumberValue named RainValue, and another script i have changes the value of it. It should change a ParticleEmitter color to grey, when RainValue = 2, and change the ParticleEmitter color white, when the RainValue = 1. the script below is in the the ParticleEmitter that i want to change. and the location of RainValue is "workspace.WeatherBrick.RainValue" there is only 1 weatherbrick in workspace, and only 1 RainValue. What do i use to change ParticleEmitter color?
local Rain = workspace.WeatherBrick.RainValue.Value
while true do if Rain = 1 then script.Parent.Color = [144.144.144]
end
if Rain = 2 then
script.Parent.Color = [255.255.255]
end

2 comments
how do i write it to link it to the scripts parent color, and which place do i enter the color i choose?
script.Parent.Color = ColorSequence.new(Color3.new(1,1,1)) -- This would be the equivalent of what you posted