Pasting some lines causes weird error

ReplicatedStorage.PlacingSystem:171: Expected identifier when parsing expression, got Unicode character U+a0 (did you mean ' '?) 

line 171:

	    -- Update appearance immediately after creation

pasting and repasting fixes the issue instantly. removing the red error lines under.

my theory since this was uhmm a pasted code. it probably didnt fix some invisible characters. However this has never happened before. though the bug is easily fixable its a little annoying.

Expected behavior

everything to run smooth as usual

As the error message indicates, there’s a special Unicode character at line 171: U+00A0.

Do you remember where you copied the text from? It’s always a bit risky to copy text from untrusted sources, as it may introduce hidden characters like this.

1 Like

The Unicode character in question, U+00A0, is a non-breaking space which looks visually identical to the character inserted by your space bar, but is, in fact, not that character (which is U+0020). This is expected behavior, and likely indicates that you copied this code from a website or application that does not correctly handle code as text. You can find plenty of tools online that will let you find-and-replace the non-breaking space with an ordinary space, or otherwise normalize the whitespace characters in your program.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.