HOW TO MAKE A SHIFT TO SPRINT 🛠️ Roblox Studio Tutorial

Опубликовано: 24 Июль 2026
на канале: Greek_boy171
29
2

In todays video I show you how to make a Shift to Sprint System in Roblox Studio. I Hope you enjoyed the video, Have a lovely rest of your day! If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!

If you would like to support me even more, Super Thanks is also another way to show your appreciation!

Script :

local Player = game.Players.LocalPlayer
local Humanoid = Player.Character.Humanoid
local ShiftToRun = false
local OriginalWalkSpeed = 16 -- This is is what the players walkspeed will be on default
local RunningWalkSpeed = 32 -- Change this to whatever you want the players walkspeed to be when they click shift.

local function onKeyPress(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
ShiftToRun = true
Humanoid.WalkSpeed = RunningWalkSpeed
end
end

local function onKeyRelease(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
ShiftToRun = false
Humanoid.WalkSpeed = OriginalWalkSpeed
end
end

game:GetService("UserInputService").InputBegan:Connect(onKeyPress)
game:GetService("UserInputService").InputEnded:Connect(onKeyRelease)