local o=require(script.Leaderstats)wait(2)local function u(u)print("\080\108\097\121\101\114 \104\097\115 \106\111\105\110\101\100")o:CreateStats(u)local A=u.TeamColor local function D(o)local u=o:WaitForChild("\072\117\109\097\110\111\105\100",60)u.Died:Connect(function() end)end D(u.Character or u.CharacterAdded:Wait())u.CharacterAdded:Connect(D)end game.Players.PlayerAdded:Connect(u)for o,A in pairs(game.Players:GetPlayers())do spawn(function()u(A)end)end



local leaderstats	= require(script.Leaderstats)




wait(2)

local function playerJoin(player)
	print("Player has joined")
	
	leaderstats:CreateStats(player)
	
	
	local teamColor = player.TeamColor
	local function characterAdded(character)
		local humanoid 	= character:WaitForChild("Humanoid", 60)
		humanoid.Died:Connect(function()
		
		end)
	end
	characterAdded(player.Character or player.CharacterAdded:Wait())
	player.CharacterAdded:Connect(characterAdded)
end



game.Players.PlayerAdded:Connect(playerJoin)

for _,player in pairs(game.Players:GetPlayers()) do
	spawn(function()
		playerJoin(player)
	end)
end
