This is what I have so far:
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible = true end)
But I don't know how to make it where you click it again it goes away..
script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible==true then game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible=false elseif game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible==false then game.Players.LocalPlayer.PlayerGui.Button.Frame.Visible=true end
Same idea really, just added 'if' statements.