I’m trying to make that the NPC runs away from a NPC inside in the Enemies folder.
I have tried alot of attempts of doing that.
I have a flee function part which it will make it run away but, Magnitude doesn’t seem to work with it. I tried using while wait(0.1) do and inserting the magnitude part inside to work. But it didnt.
I have tested with when humanoid damaged and it worked!
id put a region3 around the NPC and have a region3whitelist of the Enemies NPC folder, loop through the region3whitelist and if there is an enemy inside the region then run away.
if you like to think of a region3 in that way then yes, make the “hitbox” as big as you want around the NPC and by using Region3Whitelist whitelist the Enemy NPC folder to loop through it easly, then if there is an enemy NPC part in the region you can make the NPC run away.