the API automatically includes the base, package, coroutine, string, math, table, debug, bit32, utf8, ffi, jit and os library for ease of use!
You should keep most of your scripts functions and variables as local to avoid collision with other scripts. Global variables should only be used to write libraries or scripts that interact with each other.
π°Beginner's guide
If you're new to Lua scripting, we'd recommend to take a look at the Β«Lua in 5 minutesΒ» guide