how to make a single line of function where you can close and open a shop gui?
I can't seem to get how to make the script work
here's the script:
- local see = true
- local frame = script.Parent.Parent.Frame.Visible
- script.Parent.MouseButton1Click:Connect(function()
- while see do
- script.Parent.Parent.Frame.Visible = true
- print ("success")
- see = false
- if see == false then
- frame.Visble = false
- see = true
- end
- end
14 end)
can anyone explain to me how to make the script work so I can press a button to close or open a shop Gui?