I have players in both teams Red and Blue and i want that when i say "!end" all players be moved back into team white. Those are the colors not the names BTW... Name for team white is actually Trainee.
function End(msg)
if msg == "!end" then
a = game.Players:GetChildren()
for i,v in pairs(a) do
if v.TeamColor==BrickColor.new("Really Red") or v.TeamColor==BrickColor.new("ReallyBlue") then
v.TeamColor = BrickColor.new("White")
end
end
end
end
How do i fix this plz hlep
