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