Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ROBLOX Script
#1
(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.
Reply
#2
Replace wait() with sleep()
Reply
#3
It's a roblox script.....
Reply
#4
Ooohhh

I thought you were changing a rbx.lua script into buildism lua
Reply
#5
getchildren is styled :GetChildren().

Also, I think that your c[i] = c[i]:getChildren() has a major part in it...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)