Here is my code (This Opens the GUI, Uses Normal Script)
script.Parent.MouseClick:Connect(function(Player)
print(Player.Name)
game.Players[Player.Name].PlayerGui.ScreenGui.Frame.Visible = true
end)
I use my close button: (Uses LocalScript)
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false
end)
After I open the GUI and close it, If I try to open it again it just won't open, It still prints my name and doesn't show any errors.
Anybody know why?

3 comments
Im using a ClickDetector so I cant use MouseButton1Click
But i'll try with the LocalScript
Oh if you’re using a ClickDetector, then you would check if the ClickDetector was clicked and not the GUI itself. So you would do ClickDetector.MouseClick.