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

Roblox automatically add's an end statement?

I am having an issue (which I did not have yesterday while working on this script) with roblox adding an additional end) statement. The script works completely fine without this end statement but for some odd reason roblox automatically add's it and it causes the entire script to not function.

Error I am getting:

 ServerScriptService.Morph:353: Unexpected Unicode character: U+2028. Did you mean ' '?

2 comments

0

Roblox automatically adds ends for you because it's to make the code look easier. Roblox intends for you to make your coding experience easier, with Object Browser, and other stuff. If you don't need that extra end, then just remove it. I believe there is a setting to remove the automatic stuff.

0

That's the thing, I remove it but every time I hit play it add's that end automatically.

1 answer

✓ Accepted answer

Pressing shift-enter causes this, and it also expands your line down by one. Check to see if there are any lines that have a longer height when it's only one line of code.

This discussion is preserved as it was. New answers, comments, and votes are closed.