I'm trying to use this part of code for a training center, the values and everything work, but if the player is on any team it team's them to white. I only want the people on team Really red and Really blue to be teamed white, any one know why this won't work?
function EventEnd()
game.ServerStorage.Mode.Value = "None"
game.Workspace.MapHolder:ClearAllChildren()
Get = game.Players:GetChildren()
for i = 1,#Get do
Get[i].leaderstats.Kills.Value = 0
Get[i].leaderstats.Deaths.Value = 0
if Get[i].TeamColor == BrickColor.new('Really red') or BrickColor.new('Really blue') then
Get[i].TeamColor = BrickColor.new('White')
wait(0.1)
Get[i]:LoadCharacter()
TeamOne = 0
TeamTwo = 0
end
end
end

1 comment
Ty