script.Parent.Parent.TextButton.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Frame.Visible = false
end)
The script is inside a text button, the text button is inside a frame, the frame is inside a a GUI
script.Parent.Parent.TextButton.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Frame.Visible = false
end)
The script is inside a text button, the text button is inside a frame, the frame is inside a a GUI
Ok I found the solution, your frame name should be the exact same as the actual name of the Frame in the GUI, since Roblox can't find out which Frame you are specifying if there is more than one frame.
This discussion is preserved as it was. New answers, comments, and votes are closed.