i'm trying to grab half of the players and assign those players to the guards team, but it doesnt work for some reason, it showed on my screen that it was working, but on my friend's screen his team was still neutral (this is in a serverscript). any fixes? heres my code:
while wait() do if #game:GetService("Players"):GetPlayers() >= 2 then local allPlayers = game:GetService("Players"):GetPlayers() local halfPlayers = table.move(allPlayers, 1, math.ceil(#allPlayers/2), 1, {}) halfPlayers.Team = game.Teams.Guards wait(1) end end