--PlayAnim

while true do
	wait(0.3)
	
	local function TweenTransparency ()
		local TweenTransInfo = TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false)
		local Tween = TweenService:Create(Money, TweenTransInfo, {ImageTransparency = 1})
		Tween:Play()
	end
	
	local function MoneyDown ()
		TweenTransparency()
		Money:TweenPosition(
			UDim2.new(MoneyPX, 0, MoneyPY - 0.112 , 0),
			Enum.EasingDirection.In,
			Enum.EasingStyle.Quad,
			0.35,
			false
		)
	end
	
	local function MoneyUp ()
		Money.ImageTransparency = 0
		Money:TweenPosition(
			UDim2.new(MoneyPX, 0,MoneyPY - 0.400 , 0),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Quad,
			0.40,
			false,
			MoneyDown
		)
	end
	
	local function MoveDown ()
		--call money tween
		MoneyUp()
		--Move to origin
		MoneyBag:TweenPosition(
			UDim2.new(MoneyPX, 0,MoneyPY, 0),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Back,
			0.8,
			false
		)
		wait(0.8)
	end
	
	--moveUp
	MoneyBag:TweenPosition(
		UDim2.new(MoneyPX, 0,MoneyPY - 0.122 , 0),
		Enum.EasingDirection.In,
		Enum.EasingStyle.Back,
		0.8,
		false,
		MoveDown
	)

end
