while true do wait(.3)local function L()local L=TweenInfo.new(.4,Enum.EasingStyle.Quad,Enum.EasingDirection.In,0,false)local a=TweenService:Create(Money,L,{ImageTransparency=1})a:Play()end local function a()L()Money:TweenPosition(UDim2.new(MoneyPX,0,MoneyPY-.112,0),Enum.EasingDirection.In,Enum.EasingStyle.Quad,.35,false)end local function h()Money.ImageTransparency=0 Money:TweenPosition(UDim2.new(MoneyPX,0,MoneyPY-.4,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,false,a)end local function u()h()MoneyBag:TweenPosition(UDim2.new(MoneyPX,0,MoneyPY,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,.8,false)wait(.8)end MoneyBag:TweenPosition(UDim2.new(MoneyPX,0,MoneyPY-.122,0),Enum.EasingDirection.In,Enum.EasingStyle.Back,.8,false,u)end
--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
