local UserInputService = game:GetService("UserInputService") local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local defaultSpeed = humanoid.WalkSpeed local boostSpeed = 50 -- скорость при нажими клавиши local speedChanged = false UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.E then -- При нажатии клавиши E увеличиваем скорость humanoid.WalkSpeed = boostSpeed speedChanged = true end end) UserInputService.InputEnded:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.E and speedChanged then -- При отпускании клавиши возвращаем стандартную скорость humanoid.WalkSpeed = defaultSpeed speedChanged = false end end)