Can sandboxed scripts be AOT-compiled?
Yes, if you want. Ahead-of-time compilation can be fully native (2-5x performance for regular GDScript), or sandboxed (costlier, but matching GDScript). Keep the restricted configuration for untrusted mods.
Does it work on every platform?
The runtime and AOT approach span desktop, mobile, web, and console targets, including systems without JIT. Your export needs the matching target toolchain and integration. The separately priced Studio module loads the same artifacts as the BSD extension. Console builds are untested by us; SDK access and console ports are separate.
Why not just embed Lua?
A scripting language alone is not a security boundary. A Lua integration needs carefully restricted host bindings, libraries, and resource limits to handle untrusted code. Godot Sandbox provides a dedicated isolated runtime with a zero-outside-access restriction mode and an explicit game API.
Do I need to upload my game or license my players?
No. Compilation runs locally. Commercial tooling is licensed for development and export. The shipped runtime does not ask players for a license key.
Why obfuscation?
I'm seeing more and more threads about people having their games repackaged and resold, presumably via semi-automated processes using LLMs. I want to make it harder for casual attackers to reverse engineer released games.
What does script obfuscation protect?
Supported scripts ship as stripped machine code rather than tokenized source, making casual recovery much harder. Engine-visible names, some strings, scenes, and assets may remain inspectable. Obfuscation does not make code impossible to reverse engineer. Check your export report for scripts that remain as source.
How does GS+ obfuscation compare with Godot's encryption?
Godot's PCK encryption protects files on disk. The game ships with the key and decrypts scripts when loading them, exposing their source text or tokenized representation in memory for an analyst to recover. Encryption does not turn GDScript into machine code.
Godot Sandbox Plus compiles supported scripts into RISC-V machine code and can execute AOT native machine code. The shipped game never needs to reconstruct those scripts' source or tokens, even at load time. Obfuscation further removes eligible internal names and obscures selected strings, so recovering the implementation requires reverse engineering compiled code. Engine-visible names and some strings can still be inspected.