My current script is very simple for it:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.FrameIWantOpen.Visible = true
end)
The surfaceGui's button is the local scripts parent but it's not doing anything, anyone know how to make the code work? :) Thanks in advance.

3 comments
Where should I put it?
Put it in the SurfaceGui's button. Also, put the button inside the frame. Should work after that.
But That Would Show The Gui To Everyone In The Game I Thinks Its Better To Keep It In A Local Script But Move It To starter gui