Is this script warning valid or is it a bug?

Stole this snippet from the Love forums.

image

I’m pretty sure the warning being generated is bogus, but don’t want to read the docs on how gsub works to know for sure.

3 Likes

I am fairly sure that this code would work, seems to me like Roblox’s built in IDE is bugged. Maybe try running the code though on a random int in the command bar, just to be sure.

Yeah I should have said that. The code executes as expected, which is why I think the warning is bogus.

3 Likes

Bro u look familar

anyway its about the upper commas i think

Yeah then its like 99% just the IDE being buggy. You should be fine to use it.

Sigh, IDE is bugged. Should work fine like stated above.

1 Like