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

There are 2 problems here:

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

  2. Use X instead of Forward

@JR 01 thanks