you need to put a "wait blank seconds" block instead of "wait 0.01 seconds" block for it to work
thanks to jejYear and zand smt