-- Place this script inside the GUI you want to close


local closeButton = script.Parent.CloseButton -- Assuming you have a CloseButton inside the GUI

local function closeGUI()
	script.Parent.Visible = false
end

closeButton.MouseButton1Click:Connect(closeGUI)
