2DWorlds Forums
ROBLOX Script - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5)
+--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30)
+--- Thread: ROBLOX Script (/showthread.php?tid=6723)



ROBLOX Script - Dignity - 07-09-2011

(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.


RE: ROBLOX Script - Duck - 07-09-2011

Replace wait() with sleep()


RE: ROBLOX Script - Dignity - 07-09-2011

It's a roblox script.....


RE: ROBLOX Script - Duck - 07-09-2011

Ooohhh

I thought you were changing a rbx.lua script into buildism lua


RE: ROBLOX Script - Qwertygiy - 07-09-2011

getchildren is styled :GetChildren().

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