How to check if enemy character is facing the characters way

Hello, quick question how would I go about checking if the enemy character is facing the characters way with an angle limit, (Ex: 80° to the left from character view or -80° to the right)
ex1:

ex2:

shoot a raycast from the enemy HumanoidRootPart position to its LookVector * 100
the 100 is the distance the raycast will go

1 Like

Seems to be working thanks, can’t believe the answer was that simple.

1 Like