If you want these jumps to always be successful, you can just use MoveTo behavior (with fast speed and 0 deceleration settings), moving to player's head position on every tick.
If you want these headcrabs to miss sometimes, you can run MoveTo only once, aiming at the player's head position +/- a small offset, depending on the player's direction or movement.
For example, if the player is moving to the left:
HeadCrab MoveTo (Player.imagepointX("head"), Player.imagepointY("head")-30)