function DestroyCorpseOnDeath(f)repeat wait()until f:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")local S=f:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")if S then local v v=S.Died:Connect(function()for f,S in pairs(f:GetDescendants())do if S:IsA("\083\099\114\105\112\116")then S:Destroy()end end print("\068\101\097\116\104")local S=false for f,v in pairs(f:GetDescendants())do if v:IsA("\080\097\114\116")or v:IsA("\077\101\115\104\080\097\114\116")then spawn(function()for f=1,10,1 do wait(.1)if v then v.Transparency=v.Transparency+.1 else break end end v:Destroy()S=true end)end end repeat wait()until S==true if f then f:Destroy()end v:Disconnect()end)end end CurZombie=nil

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+.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