R15 NPC looking at you script is half-working [Client-Side]

Hey scripters! I am trying to make a NPC that faces you when you are standing in front of him.

I am trying to re-make this from bubblegum simulator :

https://gyazo.com/f952f80e55e1b359144090ea9825cdad

Here’s my LocalScript code:
edit: (removed)

This is the result:

https://gyazo.com/9011c99b86464fa0b65fd16f2de233a9

The NPC faces me when I am on his right side but not on the left. Any clues on why that is? I can’t find another solution other than changing the NPC’s orientation.

Thanks for any help!

1 Like

Would you mind providing me with the NPC’s primary part orientation? I am unable to reproduce this issue in Studio on my own.


I don’t exactly understand your request. Basically what I meant is that when you rotate the NPC, it fully works but it doesn’t when it is rotated to a certain orientation.

I am asking what the orientation of the primary part is so I am able to reproduce the issue in studio.

image

{0,-33.93,0}

1 Like