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

frame is not vaild member of imagelable, Can you help?

local frame = script.Parent.Parent.frame

script.Parent.MouseButton1Click:Connect(function()
	if frame.Visible == false then
		frame.Visible = true
	else
		frame.Visible = false
	end
end)

4 comments

0

You can send a printscreen of your GUI?

0

He meant in the explorer.

0

Legit I sent my gui and the gui in the explorer

1 answer

Just take out "frame", there is nothing named "frame" under "frame"

local frame = script.Parent.Parent --this is already the frame itself

script.Parent.MouseButton1Click:Connect(function()
    if frame.Visible == false then
        frame.Visible = true
    else
        frame.Visible = false
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.