3 ms·
string.sub does this. I usually set __index in the string metatable to a function that lets you index strings and get the right thing.
by anonymoushn 11y ago
string.sub does this. I usually set __index in the string metatable to a function that lets you index strings and get the right thing.