|
| 04 Sep 2016 10:03 AM |
hi guys, on wiki it says keydown is deprecated anyone know what the new method is |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 04 Sep 2016 10:07 AM |
game:GetService("UserInputService").InputBegan
http://wiki.roblox.com/index.php?title=API:Class/UserInputService |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2016 10:13 AM |
thanks so much but can i ask you 1 more question
can you tell me how i can use IsKeyDown? I checked the wiki but I dont understand it please help |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2016 10:22 AM |
local UIS = game:GetService("UserInputService")
function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.A print("A was pressed") end
game:GetService("UserInputService").InputBegan:connect(onKeyPress) |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2016 10:23 AM |
| *if inputObject.KeyCode == Enum.KeyCode.A then |
|
|
| Report Abuse |
|
|