Real quick, i never knew much about Lua and i'm trying to get back into it so i'm sorry if the answer is super simple i just can't think of whats wrong with it.
Frame = game.StarterGui.MaroonClickBait.Frame
script.Parent.MouseButton1Click:connect(function(plr)
Frame.Visible = false
end)
The Parent of "script" is the image button, and the parent of the image button is the frame.
Also sorry for the weird title, it kept saying to make it brief but easy to understand and anything that made sense wouldn't work.

1 comment
Add a "print("something")" in the script to see if it's even run. If script outputs it then try placing it inside the function. (basic troubleshooting)