local J=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local Y=TweenInfo.new(3,Enum.EasingStyle.Back,Enum.EasingDirection.InOut,-1,true,0)local function U(U)U=U.PrimaryPart wait()local u={Orientation=Vector3.new(0,360,0);Position=U.Position+Vector3.new(0,1.5,0)}local e=J:Create(U,Y,u)e:Play()end
-----------------------------------------------------------------------------------------------------
-- Coin Animation

local tweenService = game:GetService("TweenService")

local info = TweenInfo.new(
	3, -- length (seconds)
	Enum.EasingStyle.Back, -- easing style
	Enum.EasingDirection.InOut, -- easing direction
	-1, -- times repeated (-1 = infinite)
	true, -- should it reverse
	0 -- delay
)

local function coinAnimation(coin)
	coin = coin.PrimaryPart
	wait()
	local goals = {
		Orientation = Vector3.new(0, 360, 0),
		Position = (coin.Position + Vector3.new(0, 1.5, 0)),
	}
	local coinAnimation = tweenService:Create(coin, info, goals)
	coinAnimation:Play()
end
