|
| 08 Jun 2015 03:34 PM |
| How do you get the user input from UIS? I couldn't find it on the wiki |
|
|
| Report Abuse |
|
|
ganger800
|
  |
| Joined: 06 Dec 2012 |
| Total Posts: 427 |
|
|
| 08 Jun 2015 03:37 PM |
make sure it is a local script
local userInputService = game:GetService("UserInputService"); userInputService.InputBegan:connect(function(InputObject, isProcessed) -- stuff end)
wiki for reference: http://wiki.roblox.com/?title=API:Class/UserInputService http://wiki.roblox.com/index.php?title=API:Class/InputObject
|
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 08 Jun 2015 03:38 PM |
| game:GetService('UserInputService').InputBegan:connect(function(A) print(A.UserInputType) end) |
|
|
| Report Abuse |
|
|
| |
|