What does the @ symbol do

So i accidentaly typed the @ symbol into my code. It also turned everything behind it into my operator color aka (if local not else) I have no idea what this keyword/ operator does and would really like to know.

I also have no idea if this is a bug.

image

Nothing, it means nothing. If you’re seeing red highlights, it’s likely because Roblox Studio is flagging it as an invalid Lua variable name.

It’s part of Luau’s new attribute system.


(RFC for it)

5 Likes

Adding on to this:
Currently there’s only one user-facing attribute (@native). An RFC has been accepted for a second one (@deprecated) though and it will probably get added soon™.