Help changing all players team

I’m trying to make it change all the players team, but it will not work
the code is

p = game:GetService(“Players”)
while wait(10) do
local a = p:GetPlayers()
a.Team = “Human”
end

Ok, I would stay away from this syntax. Just do this.

local players = game:GetService(“Players”)

for i, v in pairs(players:GetChildren()) do
v.TeamColor = Brickcolor.new(insertColorOfTeamHere)
end

1 Like