-- FUNCTIONS --

return function(dropFX, rarity, speed, distance, endCF)
	local HL = script.Highlight:Clone()
	HL.Parent = dropFX.Parent
	
	local Info = TweenInfo.new(2.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
	local Info1 =  TweenInfo.new(1.75, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true)
	
	--local p0 = dropFX.Position
	--local p2 = endCF.Position
	--local p1 = CFrame.new((p0 + p2) / 2) * CFrame.new(0, Random.new():NextNumber(15 * 0.3, 15), 0).Position
	
	--local Tween = bezierTween.Create(dropFX, {
	--	Waypoints = Waypoints.new(p0, p1, p2),
	--	EasingStyle = Enum.EasingStyle.Linear,
	--	EasingDirection = Enum.EasingDirection.In,
	--	Time = distance/speed
	--})

	--Tween:Play()

	--Tween.Completed:Connect(function()
	--task.delay(speed/distance, function()
		if dropFX then
			--TS:Create(dropFX, Info, {Orientation = dropFX.Orientation + Vector3.new(0, 360, 0)}):Play() -- 
			TS:Create(dropFX, Info1, {CFrame = dropFX.CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(0, 360 * 3, 0)}):Play() -- Position =  dropFX.Position + Vector3.new(0, -1.5, 0)
		end
	--end)
end
