e.g "Hello!" > {"H", "e", "l", "l", "o", "!"}. I will appreciate if someone found an solution, i don't put my script cause i just ask how to split texts.
✓ ANSWER ACCEPTED
How to split an texts to a table?
1 answer
✓ Accepted answer
local UnTabledText = "STRING HERE"
local TableName = {}
local LengthOfText = #UnTabledText
for i = 1, LengthOfText do
local SubString = string.sub(UnTabledText, i, i)
table.insert(TableName, SubString)
end
-- for i, v in pairs(TableName) do
-- print(v)
-- end -- Thisis just to print the Table, not required.
Explanation: Replace STRING HERE with any string you want/any string variable. If you got more questions, ask, please.
2 comments
0
Thanks a lot!
0
No problem!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
That's pretty easy. Wait, I make an Answer for you.