InputEnded doesn't fire when tapping!

I’m working on a sprinting system that activates by doubletapping WASD. Everything is working smoothly, however the InputEnded signal does’t fire whenever I TAP the keys above. I’ve tried everything so far to no avail. Are there any alternatives or solutions to this problem?

1 Like

You need to show the script or we cannot help you.

I didn’t show the script cause I was assuming it had no useful information? It’s just your typical InputBegan /Ended
image

Basic code example that you can add to. It detects if the user is holding down the ‘v’ key and if they are then it prints out that the user is running but if the user is not holding down the ‘v’ key then it will warn you saying that the player is not running in the output.

LocalScript:

local userInputService = game:GetService("UserInputService")
local players = game:GetService("Players")

local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

userInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then
        return
    end

    if input.KeyCode == Enum.KeyCode.V then
        print("Running!")

        repeat task.wait() until userInputService:IsKeyDown(Enum.KeyCode.V)

        warn("Not Running!")
    end
end)