How do I make a line trace STOP AND DON T HIT MY CHARACTER when it hits my shield

so i got it to kind of work but it only hits it sometimes
image_2023-03-12_161120836