the title says it all
try this
script.Parent.MouseButton1Click:Connect(function) script.parent.visible = true end
make sure the script is under the gui/ button