KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 01 Feb 2014 07:57 PM |
Um, could I quickly get the part of the key value like ummm
pretend I defined everything
mouse.KeyDown:connect(function(key) print(key.ToString) end)
I know im wrong, but how do I make it print the number. |
|
|
| Report Abuse |
|
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 02 Feb 2014 02:48 AM |
so would I do
if key:byte == "number" then |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 02 Feb 2014 03:11 AM |
'key' itself is a string value of the key pressed. 'key:byte()' is the integer form of the key.
key = "b" print(key:byte()) >98 |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 02 Feb 2014 05:07 PM |
so
mouse.KeyDown:connect(function(key) if key:byte() == 19 then --code end end) |
|
|
| Report Abuse |
|
|
| |
|