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?
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?
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.