Expected <eof>, got 'end', I can't seem to fix it please help

So this script is for a glass breaking script that when you click on the glass it makes it shatter but every time I try to click to glass it gives me the “Expected , got ‘end’” error, I tried removing and adding ends but I can’t find the source of the problem.



If anybody could help me out that would amazing !

Try getting rid of the parenthesis on line 108. Because you are following typical function structure, I don’t believe you need that parenthesis there.

2 Likes