Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Receiving an Frame is not a valid member of ScreenGui error?

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

1 answer

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.