What is the ASCII table?
i think it has something to do with keys. If you know can you please send a link?
What is the ASCII table?
i think it has something to do with keys. If you know can you please send a link?
Computers work with 1s and 0s. They have no real way to think in "words" or even "characters" such as the letter "a" for example.
Some smart guys thought it would be a good idea to give certain 0-1 sequences a character. For example, the bit sequence (8 bits, so one byte) of 01000000 is 64 in decimal which represents the "@" character following the ASCII definition.
An ASCII table is basically all decimal numbers converted to their respective characters. You can find it here:
Note: lua's string.char takes a decimal number and it's output is the ascii character. Thus, string.char(64) returns @. Also, string.byte("@") returns 64 :)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
On ROBLOX I put 48 as Shift. I saw it on a script. But on the ASCII chart it is 16 and 17. Can you help?
ASCII has 15 and 16 ( that's what you mean I think) as "shift in" and "shift out". I don't think that means the same. Those ASCII stuff has been used in the past to run remote terminals and those special sequences were used to edit the terminal output (such as "shift something in"). Roblox keys are different though and don't follow ASCII at all. Take a look here for all codes: http://wiki.roblox.c
http://wiki.roblox.com/index.php/Taking_keyboard_input