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

Shorter Script, please? {Solved}

Asked by 10 years ago

Here is my script:

s = script.Parent

while true do
s.Light1.BrickColor = BrickColor.new("Teal")
s.Light2.BrickColor = BrickColor.new("Teal")
s.Light3.BrickColor = BrickColor.new("Teal")
s.Light4.BrickColor = BrickColor.new("Teal")
s.Light5.BrickColor = BrickColor.new("Teal")
s.Light6.BrickColor = BrickColor.new("Teal")
s.Light7.BrickColor = BrickColor.new("Teal")
s.Light8.BrickColor = BrickColor.new("Teal")
wait(30)
s.Light1.BrickColor = BrickColor.new("Hot pink")
s.Light2.BrickColor = BrickColor.new("Hot pink")
s.Light3.BrickColor = BrickColor.new("Hot pink")
s.Light4.BrickColor = BrickColor.new("Hot pink")
s.Light5.BrickColor = BrickColor.new("Hot pink")
s.Light6.BrickColor = BrickColor.new("Hot pink")
s.Light7.BrickColor = BrickColor.new("Hot pink")
s.Light8.BrickColor = BrickColor.new("Hot pink")
wait(30)
s.Light1.BrickColor = BrickColor.new("Institutional white")
s.Light2.BrickColor = BrickColor.new("Institutional white")
s.Light3.BrickColor = BrickColor.new("Institutional white")
s.Light4.BrickColor = BrickColor.new("Institutional white")
s.Light5.BrickColor = BrickColor.new("Institutional white")
s.Light6.BrickColor = BrickColor.new("Institutional white")
s.Light7.BrickColor = BrickColor.new("Institutional white")
s.Light8.BrickColor = BrickColor.new("Institutional white")
wait(30)
s.Light1.BrickColor = BrickColor.new("Really red")
s.Light2.BrickColor = BrickColor.new("Really red")
s.Light3.BrickColor = BrickColor.new("Really red")
s.Light4.BrickColor = BrickColor.new("Really red")
s.Light5.BrickColor = BrickColor.new("Really red")
s.Light6.BrickColor = BrickColor.new("Really red")
s.Light7.BrickColor = BrickColor.new("Really red")
s.Light8.BrickColor = BrickColor.new("Really red")
wait(30)
s.Light1.BrickColor = BrickColor.new("Lime green")
s.Light2.BrickColor = BrickColor.new("Lime green")
s.Light3.BrickColor = BrickColor.new("Lime green")
s.Light4.BrickColor = BrickColor.new("Lime green")
s.Light5.BrickColor = BrickColor.new("Lime green")
s.Light6.BrickColor = BrickColor.new("Lime green")
s.Light7.BrickColor = BrickColor.new("Lime green")
s.Light8.BrickColor = BrickColor.new("Lime green")
wait (30)
s.Light1.BrickColor = BrickColor.new("New Yeller")
s.Light2.BrickColor = BrickColor.new("New Yeller")
s.Light3.BrickColor = BrickColor.new("New Yeller")
s.Light4.BrickColor = BrickColor.new("New Yeller")
s.Light5.BrickColor = BrickColor.new("New Yeller")
s.Light6.BrickColor = BrickColor.new("New Yeller")
s.Light7.BrickColor = BrickColor.new("New Yeller")
s.Light8.BrickColor = BrickColor.new("New Yeller")
end

im a begginer.

2 answers

Log in to vote
2
Answered by
Sublimus 992 Moderation Voter
10 years ago
while true do
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("Teal")
    end
    wait(30)
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("Hot pink")
    end
    wait(30)
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("Institutional white")
    end
    wait(30)
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("Really red")
    end
    wait(30)
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("Lime green")
    end
    wait(30)
    for i = 1,8 do
        s:findFirstChild("Light"..i).BrickColor = BrickColor.new("New Yeller")
    end
end
0
No, this should work. What didn't work? BlueTaslem 18071 — 10y
1
sorry he forgot the first line and i though it is the script without the first line... im stupid,,, KillSide 0 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

I'm pretty sure you can just use the get children function, but in reply KillSide and BlueTaslems comments, try using the colors codes nstead of names. Otherwise, Blues script should work.

Answer this question