Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Check If The Player Has No Keys Pressed ?

Asked by 3 years ago

The Title Is Pretty Self-Explanatory

I Tried To Use This Code:

UIS.InputEnded:Connect(function(input,gameprocessed)
    if input.KeyCode == Enum.KeyCode.W or Enum.KeyCode.S or Enum.KeyCode.A or Enum.KeyCode.D then
        if player.Injures.bLeg.Value == true then
            wait(.1)
            bLegAnim:Stop()
            hum.WalkSpeed = 10
        end
    end
end)

To Check If He Doesnt Have Anything Pressed, But I Realized That Checking If The Player Has Nothing Pressed Is Better, Is There A Way To Check It ?

Answer this question