function DestroyCorpseOnDeath(l)repeat wait()until l:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")local y=l:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")if y then local S S=y.Died:Connect(function()for l,y in pairs(l:GetDescendants())do if y:IsA("\083\099\114\105\112\116")then y:Destroy()end end print("\068\101\097\116\104")local y=false for l,S in pairs(l:GetDescendants())do if S:IsA("\080\097\114\116")or S:IsA("\077\101\115\104\080\097\114\116")then spawn(function()for l=1,10,1 do wait(.1)if S then S.Transparency=S.Transparency+.1 else break end end S:Destroy()y=true end)end end repeat wait()until y==true if l then l:Destroy()end S:Disconnect()end)end end CurZombie=nil
--//Despawning\\--
function DestroyCorpseOnDeath(Model)
	repeat
		wait()
	until Model:FindFirstChildOfClass("Humanoid")
	local MaybeHuman = Model:FindFirstChildOfClass("Humanoid")
	if MaybeHuman then
		local HumanFunc
		HumanFunc = MaybeHuman.Died:Connect(function()
			for i, v in pairs(Model:GetDescendants()) do
				if v:IsA("Script") then
					v:Destroy()
				end
			end
			print("Death")
			local Done = false
			for i, v in pairs(Model:GetDescendants()) do
				if v:IsA("Part") or v:IsA("MeshPart") then
					spawn(function()
						for i = 1, 10 do
							wait(0.1)
							if v then
								v.Transparency = v.Transparency + 0.1
							else
								break
							end
						end
						v:Destroy()
						Done = true
					end)
				end
			end
			repeat
				wait()
			until Done == true
			if Model then
				Model:Destroy()
			end
			HumanFunc:Disconnect()
		end)
	end
end
CurZombie = nil
