Im having a problem with splitting players. Ive looked through a lot of dev forums, but found none that answer this. Most of them are just talking about an error.
function assignTeams()
local balanceTolerancy = math.floor(#plrs / 2)
for i = 1, balanceTolerancy do
plrs[i].Team = Red
end
for i,v in pairs(plrs) do
if not plrs[i].Team == Red then
plrs[i].Team = Blue
end
end
end

1 comment
Do you want to include the problem you're having?