Ptwisted
|
  |
| Joined: 13 Feb 2013 |
| Total Posts: 568 |
|
|
| 18 Jul 2016 07:19 PM |
Why is the KeyCode Enum.KeyCode.Unknown when I click with my mouse?
local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(function(input) print(game.Players.LocalPlayer.Name.." pressed "..tostring(input.KeyCode)) end)
>Player1 pressed Enum.KeyCode.Unknown
|
|
|
| Report Abuse |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 18 Jul 2016 07:20 PM |
uis.InputBegan:connect(function(input,event) if event then return end print(input.UserInputType) end)
|
|
|
| Report Abuse |
|