Hi, I am trying to make a TDM game where players get sorted into four teams. I have been trying to find out how to do it for a while now, and the best I found was how to sort 2 Teams.
Here is the code for the two teams:
for i, plr in ipairs(game.Players:GetPlayers()) do
if i%2 == 0 then
plr.Team = teams.Red
else
plr.Team = teams.Blue
end
end
If someone could help me make this work for four teams that’d be great. I just don’t know how to do it.
Any help is appreciated!