Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is 'strfind', and other Keywords like this, supposed to do?

I just recently look at one of my old games, when I noticed one script had this strange Keyword I've never seen before, strfind, aswell as strsub, strlower, strbyte, strchar, strlen, and a few more, I do not know what these are, nor or what these were/was used for.

1 answer

✓ Accepted answer

Those are from the string manipulation library in Lua 2.4, similar to the current string library.

strfind being string.find or :find(), strsub being str.sub or :sub(), etc.

Of course, there are also other keywords that have changed since 2.4, so they are likely from 2.4 as well. If you wish to know more you can read the reference manual for that version. (I am not sure in what version these were changed, but these keywords are also present in Lua 4.0)

2 comments

0

Presumably, since I've never seen references to these functions before now, they're deprecated in favor of the string library itself.

0

Wow, that explains allot. Thanks man! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.