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 » Scripters
Home Search
 

Re: help

Previous Thread :: Next Thread 
TsunaSenpai is not online. TsunaSenpai
Joined: 19 Jul 2012
Total Posts: 685
01 Jan 2017 11:12 AM
Whats the keycode for e in userinputtype.
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 11:16 AM
I gave the answer in your last thread. It's 101.

You can find keycodes here:
http://wiki.roblox.com/?title=API:Enum/KeyCode


http://wiki.roblox.com
Report Abuse
TsunaSenpai is not online. TsunaSenpai
Joined: 19 Jul 2012
Total Posts: 685
01 Jan 2017 11:18 AM
uis.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == 101 then

end
end
end)

So like this?
because the one you gave me before didn't work it would trigger on any key.
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 11:24 AM
Bruh indent that code. But I guess that can work. If using numbers can get a bit annoying then you can do this:

local keys = {
a = 97,
b = 98,
c = 99,
d = 100,
e = 101, --And so on and forth.
}

uis.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == keys[5] then
--code
end
end
end)


http://wiki.roblox.com
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Jan 2017 11:28 AM
or if you don't want to worry about the confusing numbers just use Enum.KeyCode.E

Formerly ToxicDominator - add 30,319 posts
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 11:32 AM
^ How the heck did I forget about that?! Fixed code:

uis.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.E then
--code
end
end
end)


http://wiki.roblox.com
Report Abuse
TsunaSenpai is not online. TsunaSenpai
Joined: 19 Jul 2012
Total Posts: 685
01 Jan 2017 11:57 AM
Oh i forgot about that too XD
Its been a while since i scripted.
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 12:46 PM
I love enumerals <3


http://wiki.roblox.com
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Jan 2017 12:51 PM
"enumeral"
lol

Formerly ToxicDominator - add 30,319 posts
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 12:51 PM
It sounds cool okay!


http://wiki.roblox.com
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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