Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get all values between two values?

Asked by 8 years ago

I was laying in bed a few minutes ago and I got what I thought was a good idea. (And I still do hehehe.) So, I'm using string.char() for an encryption system, it seems like it'd work for what I'm planning to do. For efficiency, I'd like to use some code that will put all values in a table between the values of 97 and 122. How could I do this?

1 answer

Log in to vote
0
Answered by 8 years ago

Ugh, I'm so silly and simple-minded. Got some code.

local char = 96
repeat
    wait()
    char = char + 1
    table.insert(chars, char)
until char == 122
for i,v in pairs(chars) do
    print(v)
end
Ad

Answer this question