How to fix raycast

when i trying to talk with another NPC why the action of npc is action At same time

so that make me want to sleep