while true do
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
print(Player.Team.Name)
if Player.Team.Name == Blue then
Player.Team.Name = Red
else
Player.Team.Name = Blue
wait(0.5)
end
end
It just gives me an EOF error in the output.
It prints the name and if the team is blue then change it to red , vice versa.
