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)
COMMUNITY QUESTION
frame is not vaild member of imagelable, Can you help?
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.

4 comments
You can send a printscreen of your GUI?
https://gyazo.com/3dfa030ac973715ed3dbacd028281725 https://gyazo.com/7e4dce181931a7939573956183642598
He meant in the explorer.
Legit I sent my gui and the gui in the explorer