what is the @ for on roblox
On Roblox, @ usually means a function attribute in Luau, not a chat
symbol or player tag. The main one people run into is @native, which tells
Roblox to compile that function to native code for better performance.
What it does
- It goes right above a function in a script.
- It changes how the compiler or analyzer treats that function.
- It currently has very limited use, and
@nativeis the best-known example.
Example
lua
@native
function foo()
end
This marks foo for native compilation.
If you saw an error
If Roblox highlighted @something as an invalid attribute, that usually means
the name you used is not a supported attribute. The feature is still pretty
new, and community posts say @deprecated also exists now for marking code as
deprecated.
Simple answer
So the @ is for attributes on functions in Roblox scripting, mainly to guide the compiler or linter rather than changing gameplay logic.