local q=(game:GetService("\084\101\097\109\115")):GetChildren()game.Players.PlayerAdded:Connect(function(y)for y,K in pairs(game.Players:GetPlayers())do if K then if K.Team==nil then local y=q[math.random(1,#q)]K.Team=y print(K.Name..(" \105\115 \097 "..y.Name))end end end end)

local Teams = game:GetService("Teams"):GetChildren()

game.Players.PlayerAdded:Connect(function(player)
	
	for i,player in pairs(game.Players:GetPlayers()) do
		if player then
			if player.Team == nil then
				local randomTeam = Teams[math.random(1, #Teams)]
				
				player.Team = randomTeam
				
				print(player.Name.. " is a "..randomTeam.Name)
			end
		end
	end
end)
