local K=(game:GetService("\084\101\097\109\115")):GetChildren()game.Players.PlayerAdded:Connect(function(D)for D,O in pairs(game.Players:GetPlayers())do if O then if O.Team==nil then local D=K[math.random(1,#K)]O.Team=D print(O.Name..(" \105\115 \097 "..D.Name))end end end end)
--put in ServerScriptService
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)
