Hello, my name is Fayzulloh.
I was wondering how you make a custom NPC in Roblox studio.
I made all the body parts, but I don’t know how to make it attack, and move.
Can anyone tell me how to script an enemy NPC?
(since scripting isn’t my forte)
3 Likes
Some quick questions,
How good are you at programming Roblox Lua and how detailed do you want this AI to be? Just some simple AI or something more?
First, look into PathfindingService.
1 Like
True, it all depends on how advanced you want it to be. It can just go in straight line towards the player or use pathfinding to avoid obstacles. You also said that you made the body parts, but did you rig them and put a humanoid in them?
1 Like
I recommend looking properly and not asking the forum as your first option. Excuse me, but laziness is a trait some developers have.
That’s true, you should always search for the solution yourself before you reach for the dev forum.