I’ve been having a problem, I’m working on a game and I need to abbreviate something so I use my code. But when i try it out it says “attempt to concatenate nil with nil”. I understand this is something to do with the joining of the strings but why if clearly “split” isn’t nil??
elseif n >= 100000 and n <1000000 then
local stringn = tostring(n)
local split = string.split(stringn)
return(split[1]..split[2]..split[3]..","..split[4]..split[5]..split[6])
So, what’s going on here??