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