script.Parent.Mouse1Click:Connect(function() script.Parent.Parent.Visible = false function end
✓ ANSWER ACCEPTED
how do i fix? :/ Expected identifier when parssing function name (solved:)
1 answer
✓ Accepted answer
This should work
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
the extra function you had after false was causing the problem. But you also didn't close the connect.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Put more effort into this question! Give some context, put your code into a code block.
You need to put a ')' after the last end; you don't end functions with 'function end' but a simple 'end' or in this case an 'end)'.
You need to put a "end)" not just a end, because connected functions have to have that.