SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
|
| 24 Dec 2015 04:45 PM |
if not gameProcessedEvent and key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift and hum and not sprinting and canSprint then
any button i press works instead of just left/right shift |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 24 Dec 2015 05:10 PM |
You cant say or this
if Key.KeyCode == leftShift or Key.KeyCode == rightShift |
|
|
| Report Abuse |
|
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
| |
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
|
| 24 Dec 2015 05:26 PM |
UserInputService.InputEnded:connect(function(key, gameProcessedEvent) if not gameProcessedEvent and key.KeyCode == Enum.KeyCode.LeftShift or key.Keycode == Enum.KeyCode.RightShift and hum then sprinting = false end end)
Output: Keycode is not a valid member of InputObject |
|
|
| Report Abuse |
|
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
| |
|
|
| 24 Dec 2015 07:43 PM |
'Keycode is not a valid member'
It's KeyCode.
Script0 has become unstable.. Please terminate it. |
|
|
| Report Abuse |
|
|
SameySam
|
  |
| Joined: 22 Mar 2012 |
| Total Posts: 11040 |
|
| |
|