-- DeltaRager & rdmpted
-- 26/05/2021



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
