|
| 15 Nov 2014 02:17 PM |
Can you change like the letter "e" as example to spacebar if you have like a script that disables jumping?
If so how would you add it to this?
if Sp.Adornee.Parent:findFirstChild("AllowPick") and k == "e" and not Sp.Adornee.Parent:findFirstChild("NoPick") then Sp.Adornee.Parent.Parent = Bp end end end) end) end) |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2014 02:20 PM |
| So...you want to use the E key to jump? |
|
|
| Report Abuse |
|
|
|
| 15 Nov 2014 03:21 PM |
| No i wanted to like disable jumping but yet have the spacebar key pickup an item that i have in a seperate script |
|
|
| Report Abuse |
|
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 15 Nov 2014 03:30 PM |
local UIS = game:GetService("UserInputService)
UIS.InputBegan:connect(function(k) if k == Enum.KeyCode.E then -- jump end end) |
|
|
| Report Abuse |
|
|
sbk28
|
  |
| Joined: 15 Nov 2008 |
| Total Posts: 2528 |
|
|
| 15 Nov 2014 03:31 PM |
oh
should probably have left a list of keys you can use
http://wiki.roblox.com/index.php?title=API:Enum/KeyCode
just put one of those like this
Enum.KeyCode.YOURKEYHERE |
|
|
| Report Abuse |
|
|