My shop GUI does not want to close. I am using a local script connected to the textbutton that is supposed to be used to close the GUI but the GUI just does not go away after it appears.
I cant seem to put a snip of the code but I'll type it out below.
game.StarterGui.ScreenGui.Frame.TextButton.MouseButton1Click:connect(function() script.Parent.Parent.Visible = false end)
I don't see why this isn't working but the GUI just stays there after I press the button.
I can already see a problem from 3 lines. You can't access the GUI with your simple code. You need to have a LocalScript inside of the TextButton. Inside of that very same script, you'll need to type this code:
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false end)
Instead of using game.StarterGui, use script.Parent until you reach the screengui to refer to the TextButton.