return function(K,k)if not K or not K:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then return end;(coroutine.wrap(function()if k and tonumber(k)then wait(k)end K.Rate=0 wait(K.Lifetime.Max)K:Destroy()end))()end
--[[
	Sets rate to 0, then waits for particle lifetime before destroying, as destroying an emitter immediately
	removes all it's particles as well.
]]
return function(particleEmitter, delay)
	if not particleEmitter or not particleEmitter:IsA("ParticleEmitter") then
		return
	end
	coroutine.wrap(function()
		if delay and tonumber(delay) then
			wait(delay)
		end
		particleEmitter.Rate = 0

		wait(particleEmitter.Lifetime.Max)
		particleEmitter:Destroy()
	end)()
end
