-- Get references to the DockShelf and its children

local fldr = script.Parent.Parent.Parent.CreateFrame

local createButton = fldr.Parent.Create

local btn = script.Parent

local function toggleWindow()
		-- Close the window by tweening back to the button position and size
		fldr:TweenSizeAndPosition(
			UDim2.new(1, 0, 0.022, 0),
			UDim2.new(0.0,0,0.978,0),
			'Out',
			'Quad',
			0.4,
			false,
			function()
			fldr.Visible = false
			createButton.Visible = true
			end
		)
end
