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.
Place The Local Script In StarterGui Because Local Script Wont Work In game.Workspace so place it in StarterGui then refrence the button, Thats All You Need
put a local script into the button. put the frame into the parent of the button. in the localscript put
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.frameuwantopen.Visible = true end)
I just tested it in roblox studio and it seems like you have to use a server script for that, not local.