Studio Editor should be able to underline these bugs for me

image

string: should be string. Is it ever string:?

The first argument to string:sub needs to be a string, which is doesn’t catch once you change : to .

Will this get better when types are shipped?

4 Likes

string:sub(1, 6) is the same as string.sub(string, 1, 6) so TECHNICALLY you gave a table as the first argument. Studio should indeed underline it though.