local G=Players.LocalPlayer local z=2 local q=5 return function(G)local u=G.Effects local t={}for G,q in pairs(G:GetChildren())do if q:IsA("\066\097\115\101\080\097\114\116")and q.Transparency~=1 then table.insert(t,q)local G=math.floor(((q.Size.X+q.Size.Y)+q.Size.Z)*z)local u=script.BaseEmitter:Clone()u.Rate=G u.Parent=q local P=script.FlameEmitter:Clone()P.Rate=G*2 P.Parent=q end end for G=1,100,1 do for G,z in pairs(t)do z.RotVelocity=Vector3.new(math.random(-q,q),math.random(-q,q),math.random(-q,q))end wait(.1)end end
-- constants

local PLAYER = Players.LocalPlayer

local ELECTROCUTE_AMOUNT = 2
local VELOCITY_AMOUNT = 5

return function(character)
	local effects = character.Effects
	local parts = {}

	for _, v in pairs(character:GetChildren()) do
		if v:IsA("BasePart") and v.Transparency ~= 1 then
			table.insert(parts, v)
			local rate = math.floor((v.Size.X + v.Size.Y + v.Size.Z) * ELECTROCUTE_AMOUNT)

			local emitter1 = script.BaseEmitter:Clone()
			emitter1.Rate = rate
			emitter1.Parent = v

			local emitter2 = script.FlameEmitter:Clone()
			emitter2.Rate = rate * 2
			emitter2.Parent = v
		end
	end

	for i = 1, 100 do
		for _, v in pairs(parts) do
			v.RotVelocity = Vector3.new(
				math.random(-VELOCITY_AMOUNT, VELOCITY_AMOUNT),
				math.random(-VELOCITY_AMOUNT, VELOCITY_AMOUNT),
				math.random(-VELOCITY_AMOUNT, VELOCITY_AMOUNT)
			)
		end
		wait(0.1)
	end
end
