Hi @sbfrf -
Lua scripts are a way of expanding the functionality of the autopilot, without having to write a lot of code or re-compile ArduPilot with modifications. Checkout the info in this post, and generally searching “lua” on the forums will turn up some other applications! This repository is where I have been keeping some handy examples.