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

Double Tap script not working by Printing "Double tap: W", help?

Asked by
Jirozu 71
6 years ago

My double tap script is not working by not printing "Double Tap: W"and I do not know whats up with it, can I get a hand? Script:

UserInputService.InputBegan:connect(function(input, gameProcessed)
    if input.KeyCode ~= Enum.KeyCode.W then return end;
    if gameProcessed  then
    else
        if not Pressed then
        Pressed = true 
        KeyPress = tick()
    elseif Pressed then
        if tick() <= KeyPress +0.2 then
            print("Double Tap: W")
            end
        end
        Pressed = false
     end
end)
0
you probably should check if it's NOT gameprocessed unmiss 337 — 6y
0
try < and not <= greatneil80 2647 — 6y

Answer this question