DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 16 Apr 2017 12:30 PM |
function onKeyPress(actionName, userInputState, inputObject) if userInputState == Enum.UserInputState.Begin then print("You are moving forward")
end end game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.W)
|
|
|
| Report Abuse |
|
|
|
| 16 Apr 2017 12:32 PM |
| Did you use it in a local script? |
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 16 Apr 2017 12:39 PM |
Yes, it seems that none of the WASD keys can be used. I think because they are already binded to movement, but how would I detect if they were pressed as an alternate?
|
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 16 Apr 2017 12:59 PM |
KeyCode.W Definitely exists, but how do I detect it since its already binded by default?
|
|
|
| Report Abuse |
|
|