function module.Play(L)local c=L.particle or nil local U=L.part or nil local M=L.tim or 1 local r=L.beam or nil if U~=nil then(coroutine.wrap(function()for L,c in pairs(U:GetDescendants())do if r~=nil then if c:IsA("\066\101\097\109")then c.Enabled=true task.delay(M,function()c.Enabled=false end)end end if c:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then c.Enabled=false if c:GetAttribute("\069\109\105\116\067\111\117\110\116")then c:Emit(c:GetAttribute("\069\109\105\116\067\111\117\110\116"))end c.Enabled=true task.delay(M,function()c.Enabled=false end)end end end))()else if c~=nil then c.Enabled=true task.delay(M,function()c.Enabled=false end)end end local W={}W.Part=c W.Beam=r W.particle=c return W end return module

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
