You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I was gonna make my pistol better before I got this error
What is the issue? Include screenshots / videos if possible!
The issue is that the script errors everytime i start playing, it says: " [Unexpected Unicode character: U+2028. Did you mean ’ '?]
It errors at line 125
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried searching the dev forum and it’s supposedly a line format issue when you press enter, it was a brickcolor so first I tried changing the quotes from " " to ’ ', but that didn’t work, then I tried searching dev forum and retyped the line, didn’t work
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local bullet = Instance.new("Part")
bullet.Name = "Bullet"
bullet.Parent = workspace
bullet.Anchored = true
bullet.CanCollide = false
bullet.BrickColor = BrickColor.new("Institutional white") -- Line 125, where the error occurs
This issue just randomly occurred and is very annoying
This seems to be a bug with Roblox studio at the moment, same thing happened to me. Try rewriting the line or copy and pasting the code into a new script.
It seems like you have the Unicode line seperator in your code.
Since Roblox doesn’t properly handle this as whitespace, it errors. You can ctrl+f for the character to remove it, but the issue is a larger problem with roblox as a whole and the only real solution is to copy-paste new line (regular CR LF not the unicode) characters until it gets fixed.
The only way I’m able to get this error is by pressing Shift + Enter on Windows or Shift + Return on macOS since it created an invalid unicode.
I got one burning question though. If you guys have that error constantly, what OS are you running? Do you have any additional languages installed (like if you have a language bar)?
I researched some more, and it’s actually a problem with the line number on the left, if there is a big gap between the lines, that is where the error occurs, backspace it and the error is gonna disappear, but it happens when you press shift+enter and is very annoying
I noticed that the issue occurs when you skip the line with Shift. You can try avoiding using the Shift+Space for line skipping, just pressing Space might help you.
If you are looking for a temporary solution until Roblox fixes this bug properly, I have made a hacky plugin that solves this by automatically removing the unusual characters and creating a newline as expected when you press shift+enter, or any other key combinations that cause the same issue.
You can install the plugin here if you are interested: