of     1   

LuaAtrocities
#182993980Thursday, February 04, 2016 7:36 PM GMT

So if someone were to input something like '1,2,34,4,5,6,7', how would I turn this into a table of numbers?
LuaAtrocities
#182994257Thursday, February 04, 2016 7:43 PM GMT

nevermind.
BanTech
#182994316Thursday, February 04, 2016 7:44 PM GMT

In case anyone else wants to know a method: local t = {} for digit in string.gmatch("1,2,34,4,5,6,7", "%d+") do table.insert(t, tonumber(digit)) end
ez_street
#182996820Thursday, February 04, 2016 8:35 PM GMT

local NumberTable = {} for number in string.gmatch("1,2,34,4,5,6,7", "%d+") do local number = tonumber(number) table.insert(NumberTable, number) end
BanTech
#182998767Thursday, February 04, 2016 9:13 PM GMT

^ thanks for writing the same thing using more lines?

    of     1