Convert Table words to strings

listconvert

I wanted to ask to see if there’s a possible way (maybe a online tool or something) that can convert the table above into the table below.

Basically giving them the quotations and commas. Because it’s very time consuming to manually put in each word, especially with really long tables.

So basically:

Word>>“Word”,

You can use tostring(names[1]). So you what you can do is loop through the table and turn them into a string.

for _, name in pairs(names) do
   -- toString here
end
1 Like

A fast way of doing this is probably by double clicking each word and then hit ". There are quicker ways of doing this, but they require a text editor like Visual Studio Code. In VS Code, you can multi-select lines and type.

1 Like

Oh, I didn’t know you could just press ", that’s helpful. And I did see that Visual Studio Code lets you select multiple lines and type, so I can put “” around them all at once, so thank you! This fixes my issue.

Also, @TheDCraft, that method wouldn’t work, because my code is already receiving an error as shown from the red lines in the picture. So it would have to be in non-roblox code solution.

1 Like