Yes it would work, But it isn't numbers when they have ( " " ) around them, Then they are strings.
Without them they are numbers and then it wouldn't work.
Here's how you can convert numbers into strings and turn numbers that are strings into numbers again
local number = 1
--# Converting the number into a string
number = tostring( number ) -- number = "1"
print( type( number ) ) -- prints out string
-# Converting the number into a number
number = tonumber( number ) -- number = 1
print( type( number ) ) -- prints out number
Edit:
The current code in the for loop you have would cause strings to become like this
local text = "Hello"
local t = breakUp( text, #text )
--[[
Output:
H
He
Hel
Hell
Hello
--]]
Now to fix this the loop should look like this
for i = 1, size do
broken[i] = string.sub( text, i, i )
end
Edited by Hellkid98, 19 February 2014 - 01:30 PM.