I'm trying to make a sprint button with the shift button. When I hold down the left shift the message will not appear nor will the speed of my character change. What needs to be fixed?
(Ran in a local script)
local UserInputService = game:GetService("UserInputService")
local isPressed = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift)
if isPressed then
repeat
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = RunningSpeed.Value
until not isPressed
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WalkingSpeed.Value
end

1 comment
Humanoid.Walkspeed* and ur changing it to the same value