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
 

Key Function

Previous Thread :: Next Thread 
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
13 Jun 2014 09:04 AM
What are the functions which will do something when you press w, and stop doing it when you release?

Thanksie
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
13 Jun 2014 09:27 AM
Events.

mouse.KeyDown
mouse.KeyUp
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
13 Jun 2014 09:42 AM
mouse.KeyDown:connect(function(key)
if string.lower(key) == "w" then
-- Stuff when the key is down.
end
end)

mouse.KeyUp:connect(function(key)
if string.lower(key) == "w" then
-- Stuff when the key is released.
end
end)
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
13 Jun 2014 12:16 PM
And how to make it only work on a VehicleSeat?
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
13 Jun 2014 12:27 PM
Bump
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
13 Jun 2014 05:08 PM
Bump
Report Abuse
Pragmatist is not online. Pragmatist
Joined: 17 Oct 2008
Total Posts: 16170
13 Jun 2014 05:27 PM
http://www.roblox.com/eh-for-happywalker-item?id=161258602
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