Universal Shift To Run Script
Key RequiredUniversal

Universal Shift To Run Script

Universal Scriptziropontoziroponto 5.4K views 63 executesUpdated Apr 16, 2022
5.0/ 5(1 votes)
10100% Positive
Lua Script•42 lines (1183 chars)
local userInput = game:GetService ('UserInputService')
local Players = game:GetService ('Players')

local sprintSpeed = 30 -- how fast you want to run
local walkSpeed = 16

local player = Players.LocalPlayer

local function beginSprint (input, gameProcessed)
   if not gameProcessed then
       if input.UserInputType == Enum.UserInputType.Keyboard then
           local keycode = input.KeyCode
           if keycode == Enum.KeyCode.LeftShift then
               player.Character.Humanoid.WalkSpeed = sprintSpeed
           end
       end
   end
end

local userInput = game:GetService ('UserInputService')
local Players = game:GetService ('Players')

local sprintSpeed = 30 -- how fast you want to run
local walkSpeed = 16

local player = Players.LocalPlayer

local function endSprint (input, gameProcessed)
   if not gameProcessed then
       if input.UserInputType == Enum.UserInputType.Keyboard then
           local keycode = input.KeyCode
           if keycode == Enum.KeyCode.LeftShift then
               player.Character.Humanoid.WalkSpeed = walkSpeed
           end
       end
   end
end



userInput.InputBegan:Connect (beginSprint)
userInput.InputEnded:Connect (endSprint)

Features & Information

hellow enjoy
#shift run#FE

Community Comments (1)

pineconesaremythingpineconesaremythingDec 24, 2023(edited)

cool

More Scripts for Universal Scripts