This is what i tried, but failed hard hahaha then, realized if this did work my button would be hidden and then the players wouldn't be able to see the button to show the gui again....is it even possible to do this?
local hgui = script.Parent
local gui = game.StarterGui.ScreenGui
hgui.MouseButton1Click:Connect(function()
gui.Enabled = false
end)

1 comment
Thanks for the code, has to modify it to match my names. I also, came across an issue that was making my frame be visible open run. It was an easy fix just had to uncheck the visible box within the frame settings hehe....