generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Set key as spacebar?

Previous Thread :: Next Thread 
BuildAndRaceBuilders is not online. BuildAndRaceBuilders
Joined: 10 Dec 2012
Total Posts: 250
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
MattiasKarlsen is not online. MattiasKarlsen
Joined: 13 Jan 2010
Total Posts: 639
15 Nov 2014 02:20 PM
So...you want to use the E key to jump?
Report Abuse
BuildAndRaceBuilders is not online. BuildAndRaceBuilders
Joined: 10 Dec 2012
Total Posts: 250
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image