|
| 14 Sep 2014 05:42 PM |
| On the wiki it says that you can use KeyUp to check if the / key is being let up, but you can't check to see if it's being pushed down. How do I check if the / key is being pushed down? |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 14 Sep 2014 05:44 PM |
This is how you would do it:
local KeyIsDown=false
KeyDownEvent:connect( KeyDown=true ) KeyUpEvent:connect( KeyDown=false ) |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2014 05:47 PM |
| One, that has quite a few syntax errors in it (That's java not lua) and two, I'm checking to see if the special key / is pressed down, not any key. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2014 05:47 PM |
| Oops, take that back what I said about it having syntax errors. |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 14 Sep 2014 05:49 PM |
| Umm yeah, I was giving you a generalized way of doing it, not any specific script. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2014 05:50 PM |
| k, well does anyone know how to do it? I've already tried getting the byte code for the key pressed and the / key and comparing it and it still doesn't work... |
|
|
| Report Abuse |
|
|
murcury57
|
  |
| Joined: 30 Jun 2010 |
| Total Posts: 90299 |
|
| |
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 14 Sep 2014 05:54 PM |
| Does it work with other keys? I think "/" key is reserved for roblox and can't be used in servers or something. |
|
|
| Report Abuse |
|
|
murcury57
|
  |
| Joined: 30 Jun 2010 |
| Total Posts: 90299 |
|
| |
|
| |
|