Why am I getting this Syntax Error?

The title is self explanatory, I have no idea why I’m getting this error. I don’t have any knowledge in coding.
I copied scripts from my notes app. (For Mac)

Try using double quotation marks when defining StarterGui

local StarterGui = game:GetService("StarterGui")
1 Like

LocalScript or is it a ServerScript? I forgot to list LocalScript or ServerScript in my notes. :stuck_out_tongue:

I’m assuming it’s a LocalScript since you’re disabling the Reset button

1 Like

I changed ’ to "

image
Weird, works on my side

Is there anything else inside the script?

Nope, the script is also in StarterGui. It worked a few days ago, no problems before. :confused:

I looked up the Unicode character.

Try compressing all the lines together(all code in one line) and then redo them as per usual.

Exuse me what?

For some reason the lines of code where like this:

1
(Space)
3
(Space)
5

It is because your notes app is pasting a line separator, which is not a character Lua likes (Except in strings).
Try writing the code manually, it’s not that long anyways.

5 Likes

For future notice, I think you can just press the backspace key (hello) at the end of every line. I had this issue too sometimes and it seemed to work