How to make the npc fight

so like i said im making a special game and I need to make the npc fight when the player is near or when they see the player how do I do that?

Hey, you can do that by attaching the raycast to the NPC and selecting the player as the object. If you need any more help plz let me know. :wink:

can you make a example please thank you

Sorry, I can’t do that because I’m a free user and I have all three games in progress.

Actually, if you give me the link to your game, I can make some changes and send you a screenshot so you can make the permanent changes.

I think you could also use enable block and a proximity block so that it allows the NPC to move when the player is close

But first u gotta disable the NPC’s physics