I've been trying to figure out how to change the lights from blue to red. Anytime I tried something and tested the lights would all be white. And this is for a lightbar. I'm slowly learning how to script so I had a friend do this for me and he's been away...so I don't have anyone who can help me with this.

Here's the script below...

grp1 = script.Parent.G1:GetChildren() grp2 = script.Parent.G2:GetChildren() while true do wait(.02) if script.Parent.on.Value == true then

for i = 1,#grp1 do
grp1[i].Material = "Neon"
end

for i = 1,#grp1 do
grp1[i].BrickColor = BrickColor.new("Really blue")
end

wait (0.05)


for i = 1,#grp1 do
grp1[i].Material = "Plastic"
end

for i = 1,#grp1 do
grp1[i].BrickColor = BrickColor.new("Medium stone grey")
end

wait (0.05)

for i = 1,#grp1 do
grp1[i].Material = "Neon"
end

for i = 1,#grp1 do
grp1[i].BrickColor = BrickColor.new("White")
end

wait (0.05)


for i = 1,#grp1 do
grp1[i].Material = "Plastic"
end

for i = 1,#grp1 do
grp1[i].BrickColor = BrickColor.new("Medium stone grey")
end

wait (0.05)

for i = 1,#grp2 do
grp2[i].Material = "Neon"
end

for i = 1,#grp2 do
grp2[i].BrickColor = BrickColor.new("Really blue")
end

wait (0.05)


for i = 1,#grp2 do
grp2[i].Material = "Plastic"
end

for i = 1,#grp2 do
grp2[i].BrickColor = BrickColor.new("Medium stone grey")
end

wait (0.05)

for i = 1,#grp2 do
grp2[i].Material = "Neon"
end

for i = 1,#grp2 do
grp2[i].BrickColor = BrickColor.new("White")
end

wait (0.05)


for i = 1,#grp2 do
grp2[i].Material = "Plastic"
end

for i = 1,#grp2 do
grp2[i].BrickColor = BrickColor.new("Medium stone grey")
end

wait (0.05)

else for i = 1,#grp1 do grp1[i].Material = "SmoothPlastic" end for i = 1,#grp1 do grp1[i].BrickColor = BrickColor.new("Medium stone grey") end for i = 1,#grp2 do grp2[i].Material = "SmoothPlastic" end for i = 1,#grp2 do grp2[i].BrickColor = BrickColor.new("Medium stone grey") end end end

3 comments

0

Why are you doing the scripting for him? If you don't know how to script and your writing scripts, you may not understand corrections.

0

Also, I do not see any brick color that had the name "Red" in it, nor anything that waited to see effects.

0

I'm pretty sure it's "Really Blue", and any errors?