Advertisement
4zx16

Shift to Sprint

Oct 25th, 2022
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. --[[
  3.  || 📜 AUTHOR: @4zx16 || SHIFT TO SPRINT
  4. ]]
  5.  
  6. UIS.InputBegan:Connect(function(key)
  7.     if key.KeyCode == Enum.KeyCode.LeftShift then
  8.         game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 32
  9.     end
  10. end)
  11. UIS.InputEnded:Connect(function(key)
  12.     if key.KeyCode == Enum.KeyCode.LeftShift then
  13.         game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 18
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement