How to make shift to run in roblox studio, from speed 16 to 35
local script in starterplayerscripts:
------------------------------------------------------------------------------
--paste this script in starterplayerscrips!!!!!!!!!!!!!!!!
local userInp = game:GetService("UserInputService")
local plrs = game:GetService("Players")
local sprintSpeed = 35
local walkSpeed = 16
local player = plrs.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 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
userInp.InputBegan:Connect(beginSprint)
userInp.InputEnded:Connect(endSprint)
-------------------------------------------------------------------------------------------------
make sure to like for more
Watch video Shift To Run - Roblox Studio Tutorial online without registration, duration hours minute second in high quality. This video was added by user fil1pex 15 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 27 once and liked it 1 people.