Lua script for the SPRING engine