FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
|
| 27 Oct 2014 08:17 PM |
newspeed = 30 oldspeed = 16 player = game.Players.LocalPlayer mouse = player:GetMouse()
mouse.KeyDown:connect(function(key) if key == "q" then --Would "if key == "shift" then" work? player.WalkSpeed = newspeed wait(5) player.WalkSpeed = oldspeed end end) |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 27 Oct 2014 08:18 PM |
You'll have to use the key:byte() As it stands, I don't know the byte code for the shift key |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2014 08:19 PM |
if key == "0" then
end
-- I think that's it
LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 27 Oct 2014 08:19 PM |
| player.Character.Humanoid.WalkSpeed * |
|
|
| Report Abuse |
|
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
FlameYeti
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 22158 |
|
| |
|
|
| 27 Oct 2014 08:28 PM |
| if key:lower() == "q" then |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2014 08:31 PM |
player.Character.Humanoid.Walkspeed
LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language. |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2014 08:31 PM |
player.Character.Humanoid.WalkSpeed
--I forgot to capitalize S in WalkSpeed
LUA - Losers Use Acronyms - I'm fairly certain that's not a coding language. |
|
|
| Report Abuse |
|
|