i am currently making a copy of Notoriety guard, and all i need left is realism, i made a hat with par that when touched by player hes detected with mask on, but the problem is that you can do that THROUGH walls, and the NPC's MOVE, so if they face a wall with person with mask on other side, they are detected, which doesn't happen in real life or Notoriety! i was thinking this script:
if see player connect
if player.Masked.Value == true then
if hat touched by something else too then not detected
if person is only thing touched by hat (sight) then detected
the problem with that is if there is a prt like for example NEXT to the player not infront of it, then player doesnt get detected, which doesnt make sense, so how can i do this? remember, i want a script that senses a player in front (i already did using an accesory with Handle with attachment in front of NPC) also detecting if that masked player is BEHIND SOMETHING or not. please help, thanks :)

7 comments
omg THANKS SO MUCH ill try right NOW
wait
what if that player (the chaacter actualy) is facing backwards to the NPC, and the player's sight acceory touches a wall fro example, then he wont get detected even if hes right in front of NPC, so how do i do this?
ig players sight accesory touching NPC (sees if anything is infront of player, since players looking at NPC, both models must be looking at same part if there is one between them both) then if players accesory touches something else then not detected
make another accesory for back of player, if that touched NPC, (so now you know wherer NPC should look) then if player's BACK accesory fro sight touches something then not detected, else detected, same for other sides, wow it took me so long to thing of that
hm ok ill try that out... may take a long time...
i dont understand like how i do that though, i need to know if player sight touched is NPC? i cnat do if player.sight.handle.touched(c) then it no work, how do i detect a player touching NPC with NPC script?