function module()
if (redPlayers <= 0) and (bluePlayers > 0) then
gameEnd = true
return game.Teams.Blue
elseif (bluePlayers <= 0) and (redPlayers > 0) then
gameEnd = true
return game.Teams.Red
elseif (redPlayers <= 0) and (bluePlayers <= 0) then
gameEnd = true
return nil
end
end
module()
What I'm trying to do is when this module is called, it returns who the winning team is, after the round is over. How can I get it to return who wins?

2 comments
I edited my scrip to what I have now. But it still keeps saying I can't return more than 1 value, even though I'm only returning 1 value.
What exactly do you return? (This error comes from the return closest to )