|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 13 Jun 2014 09:27 AM |
Events.
mouse.KeyDown mouse.KeyUp |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Jun 2014 12:16 PM |
| And how to make it only work on a VehicleSeat? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 13 Jun 2014 05:27 PM |
| http://www.roblox.com/eh-for-happywalker-item?id=161258602 |
|
|
| Report Abuse |
|
|