local Y=script.Parent.CloseButton local function E()script.Parent.Visible=false end Y.MouseButton1Click:Connect(E)


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)
