Making Citizen NPC System

Problem :
Now I found one issue, when npc go to path location (place where they want to go) and it’s name is shop, it will got a lemonade(i think this thing made problem). time goes by, npc start walk weirdly. it’s walk jerkily.

Want to Add :

  1. NPC Line System (at shop).
  2. Communication with Player (when player go interact)
  3. Be a Partner (follow from communication, player can ask npc to follow player,)
    Konosuba.rbxl (129.7 KB)

Thank you for your suggest

3 Likes

I couldnt see the problem, but i give solution.

Humanoid:MoveTo()

This timeout after 8 second. If the waypoint not reached in 8 seconds, it skips to the next waypoint.

repeat 
  humanoid:MoveTo(waypoints[waypoint].Position)
until humanoid.MoveToFinished:Wait()

This code format will make sure the npcs reach the waypoint before moving to the next.

3 Likes