My team change script doesn't work?
game.Players.PlayerAdded:Connect(function(plr)
local leaderstatsA = plr:WaitForChild("leaderstatsA")
if leaderstatsA:WaitForChild("Customer").Value == true and leaderstatsA:WaitForChild("Manager").Value == false
then
plr.TeamColor = game.Teams["Customer"].TeamColor
plr:LoadCharacter()
end
if leaderstatsA:WaitForChild("Manager").Value == true and leaderstatsA:WaitForChild("Customer").Value == false
then
plr.TeamColor = game.Teams["Manager"].TeamColor
plr:LoadCharacter()
end
end)
