my NPC has problems

when my NPC walks into a piece of concrete, it goes into the wall even though I programmed it to jump please help me .
here is the link to the game https://flowlab.io/game/view/1420197

There are 2 problems here:

  1. You need an always for the Raycast
    2020.08.14-12.28
    (ps. use the “Miss” to turn the switch back on)

  2. Use X instead of Forward
    2020.08.14-12.28_01

@JR 01 thanks