-------------------------


function tween(prop,object,val,tm)
	local tweenInfo = TweenInfo.new(tm, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false)
	local goal = {}
	goal[prop] = val
	local a = ts:Create(object, tweenInfo, goal)
	a:Play()
end

function rad(x)
	local open = x and 0 or 0.5
	HUB:TweenPosition(UDim2.new(open-0.5, 0, 1, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.25,true)
	radio:TweenPosition(UDim2.new(0-open, 0, 1, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.25,true)
end

function swap()
	if mode == 2 then
		mode = 0
		rad(true)
	else mode = mode + 1
		rad(false)
	end
	HUB.Windows:TweenPosition(UDim2.new(0, 0, mode-2,3),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)
	HUB.Misc:TweenPosition(UDim2.new(0, 0, mode-1,3),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.4,true)