✓ Accepted answer
No, there is no way to get how many players there are directly from a Team object. You'd have to go through each player and see what team they are.
local T1Color, T2Color = T1.TeamColor, T2.TeamColor
local Team1, Team2 = { }, { }
for Index, Player in next, Game.Players:GetPlayers() do
if Player.TeamColor == T1Color then
table.insert(Team1, Player)
elseif Player.TeamColor == T2Color then
table.insert(Team2, Player)
end
end
Then from there you'd check how many people are on a specific team.
if #Team1 == 0 then
Message.Text = "T2 wins!"
end