This script changes the team for each player, how do I make it go one by one, and put a player on a team, depending on the values of rval and dval?
rval=0
dval=0
for k, p in pairs(game.Players:GetPlayers()) do
if rval<=dval then
p.TeamColor=BrickColor.new("Bright red")
elseif dval<rval then
p.TeamColor=BrickColor.new("Bright blue")
end
end
end
end
end)
end)

3 comments
Sorry its just a small part of the script. Those ends are for other things
Ok, but did it work?
The val = val + 1 and the else were essencial, I think.