07-09-2011, 04:37 PM
(SH isn't being very helpful today)
[lua]
game:GetService("Teams")
color = 0
Teams = {"Camo","Bright red","Br. yellowish orange","Bright violet","Black","Deep blue"}
TeamDefeats = {["Camo"]=false,["Bright red"]=false,["Br. yellowish orange"]=false,["Bright violet"]=false,["Black"]=false,["Deep blue"]=false}
--CREATE TEAMS--
for i=1, #Teams do
t = Instance.new("Team")
t.Name = Teams[i]
t.TeamColor = BrickColor.new(Teams[i])
t.Parent = game.Teams
end
--THE PROBLEM IS SOMEWHERE HERE!--
while true do
wait()
if (script.Launch.Value=="true") then
c = Workspace.Map:getchildren()
for i=1, #c do
if (c[i].Name == "CommandCenter") then
c[i] = c[i]:Getchildren()
if (c[i].Name == "Asthetic") then
c[i].BrickColor = Teams[color]
color = color + 1
else
print("Not ready")
end end end end end
[/lua]
No output. It simply doesn't work.
[lua]
game:GetService("Teams")
color = 0
Teams = {"Camo","Bright red","Br. yellowish orange","Bright violet","Black","Deep blue"}
TeamDefeats = {["Camo"]=false,["Bright red"]=false,["Br. yellowish orange"]=false,["Bright violet"]=false,["Black"]=false,["Deep blue"]=false}
--CREATE TEAMS--
for i=1, #Teams do
t = Instance.new("Team")
t.Name = Teams[i]
t.TeamColor = BrickColor.new(Teams[i])
t.Parent = game.Teams
end
--THE PROBLEM IS SOMEWHERE HERE!--
while true do
wait()
if (script.Launch.Value=="true") then
c = Workspace.Map:getchildren()
for i=1, #c do
if (c[i].Name == "CommandCenter") then
c[i] = c[i]:Getchildren()
if (c[i].Name == "Asthetic") then
c[i].BrickColor = Teams[color]
color = color + 1
else
print("Not ready")
end end end end end
[/lua]
No output. It simply doesn't work.