local Z=4 return function(y)local F=y.Effects local g={}for y,F in pairs(y:GetChildren())do if F:IsA("\066\097\115\101\080\097\114\116")and F.Transparency~=1 then local y=math.floor(((F.Size.X+F.Size.Y)+F.Size.Z)*Z)local g=script.SparkleEmitter:Clone()g.Parent=F g:Emit(y)Debris:AddItem(g,.8)end end end
-- constants

local SPARKLE_AMOUNT = 4

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
			local rate = math.floor((v.Size.X + v.Size.Y + v.Size.Z) * SPARKLE_AMOUNT)

			local emitter = script.SparkleEmitter:Clone()
			emitter.Parent = v

			emitter:Emit(rate)

			Debris:AddItem(emitter, 0.8)
		end
	end
end
