|
| 12 May 2014 06:37 PM |
In the output, it says "Eliminated is not a valid member of Team"
t = Game.Teams:GetChildren() for i = 1, #t do if t[i].Eliminated.NumPlayers > 4 then -- Problem is here |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:39 PM |
| Eliminated isnt a child of Team, probably a misspell or its not there. |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:39 PM |
| Not a mispell or anything. It's in the teams, too. Is it going only by ClassName? |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:41 PM |
| NumPlayers is a property of Players. What exactly are you trying to pull off? |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:46 PM |
| I'm trying to start a GUI countdown script based on the number of players on a team. |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:46 PM |
How many people are on a team.
eliminated = {}
for i,v in pairs(game.Players:GetChildren()) do if v.TeamColor == game:GetService("Teams").Eliminated.TeamColor then table.insert(eliminated,v.Name) end end
print(#eliminated) |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:48 PM |
t = Game.Teams:GetChildren() for i = 1, #t do if i.Name == "Eliminated" then if i:GetChildren() > 4 then
end end end |
|
|
| Report Abuse |
|
|
|
| 12 May 2014 06:49 PM |
| Lol nvm. I'l' just changed the team's score based on when a player joins. |
|
|
| Report Abuse |
|
|