I'm making a horror game on ROBLOX and I need help on something that's probably the most important part.
I'm not a pathfinder, but I need help on making an enemy walk around, and when it finds the player, it begins to chase the player.
More in depth, I'm looking for some help on making a script that makes an NPC look around in the map, and when it finds the nearest player to it, it begins chasing the player until it escapes.
If somebody could help it would be amazing.

4 comments
There are loads of tutorials on this. You should search them up on youtube because it would probably help more than posting a question on here.
Sure, I'll try.
Though the only reason i'm asking is because I can't even find nothing on what i'm looking for.
Try placing down the regular zombie in your place and learn from it's code which follows you