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: What is the command for using keyboard strokes?

Previous Thread :: Next Thread 
KazzzMann is not online. KazzzMann
Joined: 23 Mar 2009
Total Posts: 619
15 Feb 2013 08:59 PM
I'm attempting to make tools that usekeystrokes like hit "F" to lunge, etc. All help appretiated :)
Report Abuse
KazzzMann is not online. KazzzMann
Joined: 23 Mar 2009
Total Posts: 619
15 Feb 2013 09:02 PM
By command I mean function btw.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
15 Feb 2013 09:02 PM
Put this in a localscript in a tool.


plr = game.Players.LocalPlayer

script.Parent.Equipped:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key:lower() == "f" then
--lungestuff
elseif key:lower() == "e" then
--etcstuff
end
end)
end)
Report Abuse
KazzzMann is not online. KazzzMann
Joined: 23 Mar 2009
Total Posts: 619
15 Feb 2013 09:04 PM
Thank you kindly!
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