I don't see anything I did wrong with the script, and please tell me what I did wrong I really don't know.~~~~~~~~~~~~~~~~~
local TextButton = script.Parent
local Frame = TextButton.script
TextButton.MouseButton1Down:Connect(function())
Frame.Visible = False
end)

5 comments
Is it a localscript or a server script? Also please use code block.
Sorry, I'm new to this website I don't know where to put the code, and its a local script.
Click edit, click the Lua symbol, and then copy + paste your code inside of the ~~~~~~~~~~. Anyways I'll be solving your question.
ok thanks!
Thanks for the answer!