|
| 20 Dec 2013 11:02 PM |
The title says all
Guns don't kill people, people kill guns. |
|
|
| Report Abuse |
|
|
|
| 20 Dec 2013 11:02 PM |
I should reword this more.
I mean as in moving via the keys (WASD, Arrow Keys)
Guns don't kill people, people kill guns. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 11:04 PM |
local mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:connect(function(key) if (key:lower() == 'a' or key:lower() == 's' or key:lower() == 'd' or key:lower() == 'w') and game.Players.LocalPlayer.Character.Torso.Velocity.magnitude>1 then --code end end) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Dec 2013 11:07 PM |
| Or just check if math.floor(torso.Velocity) > 0 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 20 Dec 2013 11:09 PM |
| ^I thought about that, but then he said "as in moving with asdw", so not like when you're falling or have a random flying hax moment... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Dec 2013 11:10 PM |
| or just moving in any direction |
|
|
| Report Abuse |
|
|