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
 

Re: Key down?

Previous Thread :: Next Thread 
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2011 09:16 AM
Is there a way to get what key the player presses in a tool or something??
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
07 Dec 2011 09:20 AM
script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "a" then
m = Instance.new("Message",workspace)
m.Text = "Player pressed a."
end end) end)

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy?~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2011 09:20 AM
Will that work in a HopperBin?
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
07 Dec 2011 09:21 AM
Yes.

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy?~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2011 09:23 AM
Okay it worked! thank you!!!
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
07 Dec 2011 09:24 AM
Np. Now help me on my thread?

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy?~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2011 09:25 AM
Lol can't see whats wrong with eet.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
07 Dec 2011 09:25 AM
D:

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy?~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
07 Dec 2011 09:26 AM
What's wrong with eet?
Report Abuse
soccaboy17 is not online. soccaboy17
Joined: 22 Sep 2009
Total Posts: 3161
07 Dec 2011 10:17 AM
Biker, does that have to go in a local script?
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