function died()local p=script.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if p.Health==0 then for p=1,50,1 do local y=script.Parent:FindFirstChild("\084\111\114\115\111")if y~=nil then local p=Instance.new("\080\097\114\116")p.BrickColor=BrickColor.new("\067\114\105\109\115\111\110")p.Transparency=1 p.Size=Vector3.new(1,.4,1)p.Position=y.Position p.Name="\066\108\111\111\100"p.Reflectance=.1 p.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"p.BottomSurface="\083\109\111\111\116\104"p.TopSurface="\083\109\111\111\116\104"p.Parent=game.Workspace local h=script.BillboardGui:clone()h.Parent=p local X=script.BloodGui:clone()X.Parent=h;(game:GetService("\068\101\098\114\105\115")):AddItem(p,12)end end end end script.Parent.Humanoid.Died:connect(died)


function died()
	local human = script.Parent:FindFirstChild("Humanoid")
	if (human.Health == 0) then
		for i = 1,50 do
			local torso = script.Parent:FindFirstChild("Torso")
			if torso ~= nil then
				local blood = Instance.new("Part")
				blood.BrickColor = BrickColor.new("Crimson")
				blood.Transparency = 1
				blood.Size = Vector3.new(1, 0.4, 1)
				blood.Position = torso.Position
				blood.Name = "Blood"
				blood.Reflectance = 0.1
				blood.Material = "SmoothPlastic"
				blood.BottomSurface = "Smooth"
				blood.TopSurface = "Smooth"
				blood.Parent = game.Workspace
				local billboard = script.BillboardGui:clone()
				billboard.Parent = blood
				local gui = script.BloodGui:clone()
				gui.Parent = billboard
				game:GetService("Debris"):AddItem(blood, 12)
			end
		end
	end
end

script.Parent.Humanoid.Died:connect(died)
