I have a gui that opens when I click on a part and closes when I click a text button. It works fine until I try to re-open that gui again and I'm not sure why that happens.
Here is my code to open the gui:
function onClicked(PlayerWhoClicked)
PlayerWhoClicked.PlayerGui.ScreenGui.Frame.Visible = true
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Here is my code to close the gui:
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Visible = false
end)

1 comment
I'm having the same issue