|
| 07 May 2014 05:42 PM |
local Plr = game.Players.LocalPlayer local Mouse = game.Players.LocalPlayer:GetMouse() Mouse.KeyDown:connect(function(key) local Key = key:lower() if Key:byte()==48 then Plr.Character.Humanoid.WalkSpeed = 25 end end)
Mouse.KeyUp:connect(function(keyy) local Keyy = keyy:lower() if Keyy:byte()==48 then Plr.Character.Humanoid.WalkSpeed = 16 end end)
Does anyone know a way to know if the player isn't moving at all so its walkspeed doesn't change to 25? A BoolValue or something to come up with some idea? I don't know |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 May 2014 05:47 PM |
| What do you mean by Humanoid Status? |
|
|
| Report Abuse |
|
|
|
| 07 May 2014 05:49 PM |
repeat wait() until game.Players.LocalPlayer.Character
Running=false
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Running:connect(function(speed) if speed > 0 then Running=true else Running=false end end)
Try this, I guess. |
|
|
| Report Abuse |
|
|
|
| 07 May 2014 05:50 PM |
| Right never mind i got it, thanks. |
|
|
| Report Abuse |
|
|