Skip to content

Standard libraries

The library exposes the following functions:

  • Byte
  • Char
  • Find
  • Format
  • Gsub
  • Gmatch
  • Dump
  • Len
  • Upper
  • Match
  • Rep
  • Reverse
  • Sub
  • Pack
  • PackSize
  • Unpack

The official Lua website has the additional documentation for the string library.

The library exposes the following functions:

  • Concat
  • Insert
  • InsertAt
  • Remove
  • Sort

The official Lua website has the additional documentation for the table library.

The Hybroid’s Math library is only available in mesh and sound environments. It is not available when creating levels because the functions it offer are often for dealing with floating point numbers.

The library exposes the following functions:

  • Abs
  • Acos
  • Atan
  • Ceil
  • Cos
  • Deg
  • Exp
  • Floor
  • Fmod
  • Log
  • Max
  • Min
  • Modf
  • Rad
  • Random
  • Sin
  • Sincos
  • Sqrt
  • Tan
  • ToInt
  • Type
  • Ult
  • Pi
  • Huge
  • MaxInt
  • MinInt

The official Lua website has the additional documentation for the math library.