I've been confused.
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.LeftShift then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
print("Computer Leftshift was pressed!")
elseif input.KeyCode == Enum.KeyCode.RightShift then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
print("Computer RightShift Was Pressed")
end
end
end
end)

1 comment
You should also use UIS.InputEnded to set the walkspeed back to 16 after you release shift key