local L=script.Parent.Parent.Parent.CreateFrame local W=L.Parent.Create local f=script.Parent local function w()L:TweenSizeAndPosition(UDim2.new(1,0,.022,0),UDim2.new(.0,0,.978,0),"\079\117\116","\081\117\097\100",.4,false,function()L.Visible=false W.Visible=true end)end

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
