Getting started

To get started with lua scripting, you'll need a suitable text editor. We suggest VS Code or Sublime Text, but in theory Notepad++ or even the built-in Microsoft Notepad will probably work just fine. After choosing an editor, head over to

If you're unfamiliar with the Lua programming language, Lua in 5 minutes is a great guide to get started.

Things to keep in mind:

  • By default, all loaded lua scripts share the same environment. This means that if 2 scripts use a global variable with the same name, they will conflict with each other and cause all kinds of issues. To prevent this, always remember to make your variables, functions, etc local

Add a new block

1

Open the insert block menu

Press / on your keyboard to open the insert block menu.

2

Search for the block you need

Try searching for “Stepper”, for exampe, to insert the stepper block.

3

Insert and edit your block

Click or press Enter to insert your block. From here, you’ll be able to edit it as needed.

Last updated