Shift To Run - Roblox Studio Tutorial

Published: 15 August 2024
on channel: fil1pex
27
1

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, duration hours minute second in high quality that is uploaded to the channel fil1pex 15 August 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 27 times and liked it 1 visitors.