of     1   

XYmajik
#215360498Wednesday, April 26, 2017 7:54 PM GMT

while true do wait(2) local numSheriffs = #game.Teams.Reds:GetChildren() local numPsy = #game.Teams.Blues:GetChildren() -- Checking for Blues if numBlue == 0 then print("Winner is Red!") break end -- Checking for Reds if numRed == 0 then print("Winner is Blue!") break end end My script check for players in each team to see which one has the most players. The problem is, if Blue is empty and Red is full, it's still going to print "Winner is Blue." So in the output I see Winner is Red! Winner is Blue But I only want to see the real winner. Blue or Red. Depending on who has the most players. (I hope this isn't too confusing. Thanks!)
JoshRBX
#215360685Wednesday, April 26, 2017 7:57 PM GMT

if red == blue then print"draw" elseif red > blue then print"red" else print"blue" end twitter.com/TheRealJoshRBX/status/856985205562904580 // Josh#5318
XYmajik
#215366270Wednesday, April 26, 2017 9:35 PM GMT

Got it Josh. Ty.
XYmajik
#215366821Wednesday, April 26, 2017 9:44 PM GMT

So let's say there's 1 player in the Red Team. I tried it out like that and my problem continues to run.
XYmajik
#215367312Wednesday, April 26, 2017 9:51 PM GMT

I attempted if red < 1 then and my case stays the same.
JoshRBX
#215367999Wednesday, April 26, 2017 10:03 PM GMT

Show me the script you're working with. twitter.com/TheRealJoshRBX/status/856985205562904580 // Josh#5318
XYmajik
#215368390Wednesday, April 26, 2017 10:09 PM GMT

Ok, I'll pm it to u.
caca50
#215369017Wednesday, April 26, 2017 10:19 PM GMT

Can you actually call the :GetChildren() method of a team object and it returns all the players on that team?
XYmajik
#215375885Thursday, April 27, 2017 12:26 AM GMT

You need to use #. Example: game.Team.RedTeam:GetChildren(). It worked for me.

    of     1