local f=Players.LocalPlayer local R=2 local s=10 return function(f)local Z=f.Effects local r={}for f,s in pairs(f:GetChildren())do if s:IsA("\066\097\115\101\080\097\114\116")and s.Transparency~=1 then table.insert(r,s)local f=math.floor(((s.Size.X+s.Size.Y)+s.Size.Z)*R)local Z=script.ElectricityEmitter1:Clone()Z.Rate=f Z.Parent=s local K=script.ElectricityEmitter2:Clone()K.Rate=f K.Parent=s end end for f=1,100,1 do for f,R in pairs(r)do R.RotVelocity=Vector3.new(math.random(-s,s),math.random(-s,s),math.random(-s,s))end wait(.1)end end
-- constants

local PLAYER = Players.LocalPlayer

local ELECTROCUTE_AMOUNT = 2
local VELOCITY_AMOUNT = 10

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.ElectricityEmitter1:Clone()
			emitter1.Rate = rate
			emitter1.Parent = v

			local emitter2 = script.ElectricityEmitter2:Clone()
			emitter2.Rate = rate
			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
