The Wayback Machine - https://web.archive.org/web/20131216141103/http://sontrak.com:80/index.html

When Transformice switched from Flash to HTML5 (Unity WebGL), many internal API structures changed. Old guides (pre-2020) referencing FlashVar or ExternalInterface are obsolete. The current Lua API is sturdier but slower.

The best way to see the API in action is to look at existing tools:

The "Transformice API" typically refers to the Lua Module API

The , primarily referred to as the Module API , is a Lua-based scripting system that allows players to create custom minigames (modules) directly within the game environment. Unlike external bots, these modules run natively on the game's servers, enabling developers to modify game physics, handle player interactions, and create unique objectives. Core Functionality

: eventNewGame triggers when a new map loads, and eventLoop runs every 500 milliseconds to handle continuous logic.