Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i fix? :/ Expected identifier when parssing function name (solved:)

script.Parent.Mouse1Click:Connect(function() script.Parent.Parent.Visible = false function end

3 comments

0

Put more effort into this question! Give some context, put your code into a code block.

0

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)'.

0

You need to put a "end)" not just a end, because connected functions have to have that.

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.