function module.Play(h)local b=h.particle or nil local I=h.part or nil local r=h.tim or 1 local Q=h.beam or nil if I~=nil then(coroutine.wrap(function()for h,b in pairs(I:GetDescendants())do if Q~=nil then if b:IsA("\066\101\097\109")then b.Enabled=true task.delay(r,function()b.Enabled=false end)end end if b:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then b.Enabled=false if b:GetAttribute("\069\109\105\116\067\111\117\110\116")then b:Emit(b:GetAttribute("\069\109\105\116\067\111\117\110\116"))end b.Enabled=true task.delay(r,function()b.Enabled=false end)end end end))()else if b~=nil then b.Enabled=true task.delay(r,function()b.Enabled=false end)end end local l={}l.Part=b l.Beam=Q l.particle=b return l end return module
-- play particles + w/ custom
function module.Play(data)
	local particle = data.particle or nil
	local part = data.part or nil
	local tim = data.tim or 1
	local beam = data.beam or nil

	if part ~= nil then
		coroutine.wrap(function()
			for i, v in pairs(part:GetDescendants()) do
				-- beams?
				if beam ~= nil then
					if v:IsA("Beam") then
						v.Enabled = true
						task.delay(tim, function()
							v.Enabled = false
						end)
					end
				end

				-- particle?
				if v:IsA("ParticleEmitter") then
					v.Enabled = false
					if v:GetAttribute("EmitCount") then
						v:Emit(v:GetAttribute("EmitCount"))
					end
					v.Enabled = true
					task.delay(tim, function()
						v.Enabled = false
						--game.Debris:AddItem(v, tim+1)
					end)
				end
			end
		end)()
	else
		if particle ~= nil then
			particle.Enabled = true
			task.delay(tim, function()
				particle.Enabled = false
				--game.Debris:AddItem(v, tim+1)
			end)
		end
	end

	local tab = {}
	tab.Part = particle
	tab.Beam = beam
	tab.particle = particle

	return tab
end

return module
