Joriangames

Shift to sprint

Sep 21st, 2021 (edited)
474
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. Thanks for using this script
  3. This script is made by Joriangames/Problox Studio Scripts
  4. Want to know how to use this and script explanation?
  5. Watch my tutorial: https://youtu.be/resztVNyHqE
  6.  
  7. ]]
  8.  
  9. local char = script.Parent
  10. local hum = char:WaitForChild("Humanoid")
  11.  
  12. local UIS = game:GetService("UserInputService")
  13.  
  14. UIS.InputBegan:Connect(function(key, inChat)
  15.     if inChat then return end
  16.     if key.KeyCode == Enum.KeyCode.LeftShift then
  17.         hum.WalkSpeed = 50
  18.     end
  19. end)
  20.  
  21. UIS.InputEnded:Connect(function(key, inChat)
  22.     if inChat then return end
  23.     if key.KeyCode == Enum.KeyCode.LeftShift then
  24.         hum.WalkSpeed = 16
  25.     end
  26. end)
RAW Paste Data