Skip to content

Creating and Editing Scripts โ€‹

Scripts are managed through File > Shared Files > Scripts.

Creating a Script โ€‹

To create a new script:

  1. Open File > Shared Files > Scripts.
  2. Click Create to create a new empty script.
  3. To create a copy of an existing script, select it and use Duplicate from the context menu.

This is useful when you want to reuse parts of an existing script instead of starting from scratch.

Editing a Script โ€‹

Foxel does not include a built-in script editor, so scripts are edited in an external editor.

To edit a script, double-click it in File > Shared Files > Scripts. Foxel opens the script in the default application associated with .lua files on your system.

If you have configured a dedicated script editor in the preferences, Foxel uses that editor instead.

Tip

If you need a free editor for Lua scripts, Notepad++ is a good option and supports Lua syntax highlighting.