Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Where would I even start with custom NPC enemies..?

Asked by 4 years ago

So, I'm wanting to make an enemy NPC system that can support a ton of NPCs. In my initial research, I found out it may not be as easy as I might've thought. Creating a system that supports tons of NPCs is pretty tough. I learned that using Humanoids for a lot of NPCs is a no-no, and would cause a lot of lag. So I began working on a non-humanoid NPC system for myself, and have ended up in a rut. I feel like I've done everything I know, and none of it looks good. I need to know some opinions of what other people would do to begin the movement/tracking player system. Would it be best to use pathfinding?

0
Pathfinding is one of the common options, some others use :MoveTo in a loop. Whatever you do you're going to need some loop and some function that finds targets and then a function that does the moving BlackOrange3343 2676 — 4y
0
Well that's the thing, MoveTo only works for humanoids. I'm wanting NPCs that exclude the "humanoid" part, because excessive humanoids = lag. It's strange because a system like this seems like it should be so easy to make, but haven't had any success with it. ImperiumDomini2 39 — 4y
0
@ImperiumDomini2, well, you can still use pathfinding to generate paths for you, the only thing is you're going to need to create your own MoveTo system either using body forces or editing position / cframe. BlackOrange3343 2676 — 4y

Answer this question