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

Previous Thread :: Next Thread 
Voreli is not online. Voreli
Joined: 13 Apr 2010
Total Posts: 194
27 Nov 2015 08:44 PM
Is there a way to make KeyDown work while typing into chat? Like:

mouse.KeyDown:connect(function(key)

if key=='a' then
print'yep'
end
end)

When you haven't pressed '/',

>yep

When you have pressed '/',

---------------------------

Anyone know a way around this?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
27 Nov 2015 08:46 PM
Nope. UserInputService works this way though. But you shouldn't be using KeyDown anyways, it is deprecated.
Report Abuse
Fribet is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
27 Nov 2015 08:49 PM
UserInputService
Report Abuse
Voreli is not online. Voreli
Joined: 13 Apr 2010
Total Posts: 194
27 Nov 2015 08:55 PM
Yep, just discovered this. Thank you, guys!
Report Abuse
Voreli is not online. Voreli
Joined: 13 Apr 2010
Total Posts: 194
27 Nov 2015 09:15 PM
One quick question, is there a way to make it use KeyUp? When I try to use this, it presses the key several times instead of just once.
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