Roblox Studio How To Add A Sprinting Script 2023!
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
Other Videos By BobTheKnob
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.