Functions like strfind
mean that this is Lua 4.0 code; these functions are now in tables, like string.find
. Look at the standard libraries section of the manual.
In Lua 5.1, all strings have a metatable pointing to the string
table, so that s:find('HELLO')
is equivalent to string.find(s,'HELLO')
.