Debris=game:GetService("\068\101\098\114\105\115")RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")Character=script.Parent Humanoid=Character:FindFirstChild("\072\117\109\097\110\111\105\100")Smoke=script:FindFirstChild("\083\109\111\107\101")function DestroyScript()Debris:AddItem(script,.5)end if not Smoke or not Humanoid or Humanoid.Health>0 then return end PartsEffected={}for G,f in pairs(Character:GetChildren())do if f:IsA("\066\097\115\101\080\097\114\116")and f.Transparency<1 then f.Velocity=f.Velocity+(CFrame.Angles(math.random(-360,360)*.01,math.random(-360,360)*.01,math.random(-360,360)*.01)).lookVector*math.random(1,5)f.RotVelocity=Vector3.new(math.random(-360,360)*.01,math.random(-360,360)*.01,math.random(-360,360)*.01)for G,f in pairs(f:GetChildren())do if f:IsA("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")then f:Destroy()end end local G=Smoke:Clone()G.Enabled=true G.Parent=f table.insert(PartsEffected,{Part=f;Smoke=G})end end FadeLoop=RunService.Stepped:connect(function(G,f)if#PartsEffected==0 then if FadeLoop then FadeLoop:disconnect()return end else for G,f in pairs(PartsEffected)do if f.Part.Transparency<1 then f.Part.Transparency=f.Part.Transparency+0 if f.Part.Transparency>=1 then f.Smoke.Enabled=false Debris:AddItem(f.Part,4)end else table.remove(PartsEffected,G)end end end end)


Debris = game:GetService("Debris")
RunService = game:GetService("RunService")

Character = script.Parent

Humanoid = Character:FindFirstChild("Humanoid")

Smoke = script:FindFirstChild("Smoke")

function DestroyScript()
	Debris:AddItem(script, 0.5)
end

if not Smoke or not Humanoid or Humanoid.Health > 0 then
	return
end

PartsEffected = {}

for i, v in pairs(Character:GetChildren()) do
	if v:IsA("BasePart") and v.Transparency < 1 then
		v.Velocity = (v.Velocity + (CFrame.Angles((math.random(-360, 360) * 0.01), (math.random(-360, 360) * 0.01), (math.random(-360, 360) * 0.01)).lookVector * math.random(1, 5)))
		v.RotVelocity = Vector3.new((math.random(-360, 360) * 0.01), (math.random(-360, 360) * 0.01), (math.random(-360, 360) * 0.01))
		for ii, vv in pairs(v:GetChildren()) do
			if vv:IsA("ParticleEmitter") then
				vv:Destroy()
			end
		end
		local SmokeEffect = Smoke:Clone()
		SmokeEffect.Enabled = true
		SmokeEffect.Parent = v
		table.insert(PartsEffected, {Part = v, Smoke = SmokeEffect})
	end
end

FadeLoop = RunService.Stepped:connect(function(Time, Step)
	if #PartsEffected == 0 then
		if FadeLoop then
			FadeLoop:disconnect()
			return
		end
	else
		for i, v in pairs(PartsEffected) do
			if v.Part.Transparency < 1 then
				v.Part.Transparency = (v.Part.Transparency + 0)
				if v.Part.Transparency >= 1 then
					v.Smoke.Enabled = false
					Debris:AddItem(v.Part, 4)
				end
			else
				table.remove(PartsEffected, i)
			end
		end
	end
end)
