local player = game.Players.LocalPlayer
local txt = script.Parent.TextLabel
local Frame = script.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
if txt.Visible == true then
txt.Visible = false
else if txt.Visible == false then
txt.Visible = true
end
end
end)
Textlabel is inside ImageButton, but its not a valid member of it? WHAT?

2 comments
The problem was "TextLabel" was basically nil and it couldn't find it or something because after I put in waitforchild "textlabel" it worked. Thanks!
Yes, I would recommend adding everything in my code I sent you to put in yours.