function leftClick(mouse)
script.Parent.Parent.Box.Visible = true
end
script.Parent.MouseButton1Click:connect(leftClick)
function leftClick(mouse)
script.Parent.Parent.Box.Visible = false
end
script.Parent.MouseButton1Click:connect(leftClick)
Thats the script I have and it will only open, not close

1 comment
set it where it checks if its open and if its not then it closes else if its not open then it opens it