#pragma native
Emit --!native so Luau can compile the script as native code.
Syntax
Section titled “Syntax”#pragma nativeLuau emit
Section titled “Luau emit”--!nativeDescription
Section titled “Description”Pairs well with #pragma optimize 2. Valid in .clh, .clp, and .clpp.
Example
Section titled “Example”#pragma native#pragma optimize 2
void init() {}