of     1   

[rfa#hidefromsearch]
#161424299Saturday, May 02, 2015 10:08 PM GMT

[rfa#hidefromsearch]
reptiledude10
#161424332Saturday, May 02, 2015 10:08 PM GMT

get children? and you also have to add in a counting method Go troll in OT.
[rfa#hidefromsearch]
#161424384Saturday, May 02, 2015 10:09 PM GMT

[rfa#hidefromsearch]
[rfa#hidefromsearch]
#161424701Saturday, May 02, 2015 10:14 PM GMT

[rfa#hidefromsearch]
reptiledude10
#161424774Saturday, May 02, 2015 10:15 PM GMT

local redplayers = game.Teams.Red:GetChildren() local number = #redplayers if number == 0 then print('Blue wins!') end Go troll in OT.
Miztix
#161424954Saturday, May 02, 2015 10:17 PM GMT

Roblox.Forums.ATR.CrimsonForce remove()
Bobobob12
#161425337Saturday, May 02, 2015 10:24 PM GMT

iirc the teams object doesn't actually have any children, so there's no way to use the object itself to get the number of players try doing this: local numRedPlayers = 0; for i, v in pairs(game.Players:GetChildren()) do if v.TeamColor == game.Teams.Red.TeamColor then numRedPlayers = numRedPlayers + 1; end; end; if numRedPlayers == 0 then print("Blue has won!"); end; --[[alternatively, for i, v in pairs(game.Players:GetChildren()) do if v.TeamColor == game.Teams.Red.TeamColor then break print("Blue team hasn't won yet!"); end; end;]]

    of     1