SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 22 Jul 2012 04:48 AM |
"Fired when a user releases a key on the keyboard. Argument is a string representation of the key. If the key has no string representation (such as space), the string passed in is the keycode for that character. Keycodes are currently in ASCII."
How do we find which key they are, even if we know the ASCII codes?
I've tried comparing argument key to a number and string. dont work |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2012 04:50 AM |
Isn't it just if key == "f" then?
-[ I am, the man, who can script. ]- |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 22 Jul 2012 04:51 AM |
local function onKeyDown( key ) print("Key:", key, " Code:", string.byte(key)) end mouse.KeyDown:connect(onKeyDown)
That would return the string.byte of the Key pressed
|
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
| |
|