local UIS = game:GetService(“UserInputService”)
local key = Enum.KeyCode.W

UIS.InputBegan:Connect(function(key, gameProcessed)
    if gameProcessed then return end
    if key.KeyCode = key then
      if key.KeyCode = key then
       print(“success”)
    else 
       return
      end
    end
end)

what should happen is that when you press it two times, it should say success. What’s the problem here? Thanks!

2 comments

0

I assume it is saying it at the same time even if it's the first press?

0

[edited]