Roblox Studio How To Add A Sprinting Script 2023!

Channel:
Subscribers:
126
Published on ● Video Link: https://www.youtube.com/watch?v=-_F_hHWH7gE



Roblox
Game:
Roblox (2006)
Category:
Tutorial
Duration: 1:10
138 views
5


Script:

UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()

player.CharacterAdded:Connect(function(character)
char = character
end)
local humanoid = char:WaitForChild("Humanoid")
local sprinting = false
local SprintSpeed = 25
local walkspeed = 16
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = SprintSpeed
end
end)
UserInputService.InputEnded:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = walkspeed
end
end)



Subscribe! https://www.youtube.com/@MarkPlaysAlotOfGames/videos

i havent got a discord server yet cause that takes effiort

Twitch: https://www.twitch.tv/markleap69

TikTok: https://www.tiktok.com/@i_will_throw_spaghetti

so ye thats pretty much it accept for tags

#cityskylines #viral #blowthisupforme #gameing #gaming #gamingvideos







Tags:
Mark
Markplaysalotofgame
MarkPlaysAlotOfGames
roblox
roblox studio
roblox studio tutorial
2023
roblox studio how to
roblox how to
roblox tutorial
roblox studio tutorial 2023
roblox shift to sprint
roblox studio shift to sprint
roblox running
roblox studio running



Other Statistics

Roblox Statistics For BobTheKnob

BobTheKnob currently has 1,377 views spread across 10 videos for Roblox. Less than an hour worth of Roblox videos were uploaded to his channel, or 1.35% of the total watchable video on BobTheKnob's YouTube channel.