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
 

keydown

Previous Thread :: Next Thread 
Rolls_Reus is not online. Rolls_Reus
Joined: 26 Feb 2016
Total Posts: 51
04 Sep 2016 10:03 AM
hi guys, on wiki it says keydown is deprecated
anyone know what the new method is
Report Abuse
AxonMega is not online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
04 Sep 2016 10:07 AM
game:GetService("UserInputService").InputBegan

http://wiki.roblox.com/index.php?title=API:Class/UserInputService
Report Abuse
Rolls_Reus is not online. Rolls_Reus
Joined: 26 Feb 2016
Total Posts: 51
04 Sep 2016 10:13 AM
thanks so much but can i ask you 1 more question

can you tell me how i can use IsKeyDown? I checked the wiki but I dont understand it please help
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
04 Sep 2016 10:22 AM
local UIS = game:GetService("UserInputService")

function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.A
print("A was pressed")
end

game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
04 Sep 2016 10:23 AM
*if inputObject.KeyCode == Enum.KeyCode.A then
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