Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago
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)
0
You can send a printscreen of your GUI? yHasteeD 1819 — 5y
0
He meant in the explorer. User#25115 0 — 5y
0
Legit I sent my gui and the gui in the explorer CreeperCrush 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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)
Ad

Answer this question