Working Code:
function GetLine(text) local words = {} local word = "" for i = 1, #text do local char = string.sub(text,i,i) if char ~= "\n" then word = word..char else table.insert(words,#words+1,word) word = "" end end return words end
Returns a full table so yeah lol.