function _Confetti.createParticle(H,i,X,u)local E={}setmetatable(E,_Confetti)local B=i.X if B<0 then B=B*-1 end local Y=0-B i=Vector2.new(i.X,i.Y+Y*.75)E.EmitterPosition=H E.EmitterPower=i E.Position=Vector2.new(0,0)E.Power=i local function N()local H=shapes[math.random(#shapes)]:Clone()H.Parent=X H.Rotation=math.random(360)H.Visible=true H.ZIndex=20 return H end E.Label=N()E.DefaultSize=30 E.Size=1 E.Side=-1 E.OutOfBounds=false E.Enabled=false E.Cycles=0 return E end
-- Create a confetti particle.
function _Confetti.createParticle(paramEmitter, paramForce, paramParent, paramColors)
	local _Particle = {}
	setmetatable(_Particle, _Confetti)
	--colors = paramColors;
	-- Adjust forces.
	local xforce = paramForce.X
	if xforce < 0 then
		xforce = xforce * -1
	end
	local distanceFromZero = 0 - xforce
	paramForce = Vector2.new(paramForce.X, paramForce.Y + (distanceFromZero * 0.75))
	--if (paramColors == nil) then paramColors = colors; end;
	-- Confetti data.
	_Particle.EmitterPosition = paramEmitter
	_Particle.EmitterPower = paramForce
	_Particle.Position = Vector2.new(0, 0)
	_Particle.Power = paramForce
	--_Particle.Color = paramColors[math.random(#paramColors)];
	local function getParticle()
		local label = shapes[math.random(#shapes)]:Clone()
		--label.ImageColor3 = _Particle.Color;
		label.Parent = paramParent
		label.Rotation = math.random(360)
		label.Visible = true
		label.ZIndex = 20
		return label
	end
	_Particle.Label = getParticle()
	_Particle.DefaultSize = 30
	_Particle.Size = 1
	_Particle.Side = -1
	_Particle.OutOfBounds = false
	_Particle.Enabled = false
	_Particle.Cycles = 0
	return _Particle
end
