<!-- Page: https://rustic-game-engine.pages.dev/docs/scripting/lua -->

# Scripting Rustic games with Lua 5.4

Lua 5.4 is the most direct Rustic scripting option: the runtime is bundled, each
script is an isolated module, and core host writes are applied immediately. Scheduled actions and event delivery follow the shared runtime scheduler; see [execution behavior](https://rustic-game-engine.pages.dev/markdown/guides/scripting.md#when-mutations-take-effect).
Create a `.lua` file through the Explorer's scripting commands; do not create an
Asset ID or edit a scene file manually.


## Topics

- [Attach and choose a scope](https://rustic-game-engine.pages.dev/markdown/scripting/lua/attach-and-choose-a-scope.md)
- [Module and callbacks](https://rustic-game-engine.pages.dev/markdown/scripting/lua/module-and-callbacks.md)
- [Script API](https://rustic-game-engine.pages.dev/markdown/scripting/lua/script-api.md)
- [Finding and creating objects](https://rustic-game-engine.pages.dev/markdown/scripting/lua/finding-and-creating-objects.md)
- [Input](https://rustic-game-engine.pages.dev/markdown/scripting/lua/input.md)
- [Isolation and failures](https://rustic-game-engine.pages.dev/markdown/scripting/lua/isolation-and-failures.md)

## Related guides

- [Edit scene objects](https://rustic-game-engine.pages.dev/markdown/guides/scene-objects.md)
- [Use gameplay actions](https://rustic-game-engine.pages.dev/markdown/guides/gameplay-actions.md)
