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: KeyDown() replacement?

Previous Thread :: Next Thread 
Tom_z is not online. Tom_z
Joined: 13 Feb 2011
Total Posts: 668
24 Jan 2017 10:19 AM
I've completely forgotten what you are supposed to use instead of KeyDown(). I thought it was something like inputservice but I can't find anything like that on the wiki. Could someone let me know what you are supposed to use now? Thanks.


I used to think I was rich :( - R$0
Report Abuse
violetbrute4 is not online. violetbrute4
Joined: 21 Dec 2012
Total Posts: 441
24 Jan 2017 10:26 AM
userinputservice
Report Abuse
Tom_z is not online. Tom_z
Joined: 13 Feb 2011
Total Posts: 668
24 Jan 2017 10:27 AM
Ok cheers.


|| I used to think I was rich... :( || R$0 ||
Report Abuse
RogueMage is not online. RogueMage
Joined: 28 Jan 2012
Total Posts: 1235
24 Jan 2017 11:22 AM
UserInputService.InputBegan:Connect(function(input)
if input.UserInputType = Enum.UserInputType.Keyboard then
local keyCode = input.KeyCode
if keyCode == Enum.KeyCode.[UpperCaseLetter] then
-- code
end
end
end)

InputEnded is the same (basically lifting a key)
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