Syntax error even though its properly written

image

This problem has been bugging me for a long time now :confused:

Its highlighting my script because of a syntax error. But when I copy the code and put it on my other laptop. It has no problem at all…

I suspect it is a bug with the program, may not replicate between devices. Likely have to make do with it unfortunately.

Have you tried reinstalling studio?

It’s an issue with the linter, I’ve had similar issues. Closing the tab and reopening or reopening studio entirely works on my machine.

3 Likes

Fixed!!!

All I had to do was re-write the file.

Possible Cause:
The script was written on discord while I had no access to roblox studio. I just copied and pasted the code. It may be a unicode or smthn like that problem.