i used to have one that work but the updates killed it please tell me were to get a new one or help me fix the old one
If you had it so when you pressed a key, or got any input for that matter. Just up the player speed.
01 | Sprint_Speed = 30 --[[The default walkspeed is 16 so]] -- |
02 | --[[the Sprint_Speed number should]]-- |
03 | --[[be higher than 16 ]] -- |
04 |
05 | MyMouse = game.Players.localPlayer:GetMouse() |
06 | Player = game.Players.localPlayer |
07 |
08 | MyMouse.KeyDown:connect( function (key) |
09 | if (key:byte() = = 48 ) then |
10 | local human = Player.Character:FindFirstChild( "Humanoid" ) |
11 | human.WalkSpeed = Sprint_Speed |
12 | end |
13 | end ) |
14 |
15 | MyMouse.KeyUp:connect( function (key) |
16 | if (key:byte() = = 48 ) then |
17 | local human = Player.Character:FindFirstChild( "Humanoid" ) |
18 | human.WalkSpeed = 16 |
19 | end |
20 | end ) |
Left shift to sprint.
Put this in a local script in the StarterPack