Hello everyone, I’m trying to change this point-light and part colour.
Basically I’m trying to make one of those flashing lights, it’ll change from blue to red and red to blue, and it would loop, please help.
I want the PointLight to change at the same time as the part.
while true do
script.Parent.Color = Color3.new(0.458824, 0.705882, 0.72549) --// this is for the point light.
script.Parent.Parent.BrickColor = BrickColor.new(0.458824, 0.705882, 0.72549) --// this is for the part colour
wait(1)
script.Parent.Color = Color3.new(0.635294, 0, 0) --// this is for the point light.
script.Parent.Parent.BrickColor = BrickColor.new(0.635294, 0, 0) --// this is for the part colour
end
while true do
script.Parent.Color = Color3.new(0.458824, 0.705882, 0.72549) --// this is for the point light.
script.Parent.Parent.Color = Color3.new(0.458824, 0.705882, 0.72549) --// this is for the part colour
wait(1)
script.Parent.Color = Color3.new(0.635294, 0, 0) --// this is for the point light.
script.Parent.Parent.Color = Color3.new(0.635294, 0, 0) --// this is for the part colour
end
Add a wait(1) at the bottom of the while loop as well because you are only making it turn into red for a little bit then it goes back to blue quickly so you don’t see the change.