I want to make NPCs for my own game

I want to make NPCs for my own game (they will stay in a hotel, they can get food, NPCs can be cashiers of the grocery store, and many more jobs.)

Is it possible? I want first to put NPCs so they can walk on the street and so they can cross the street on a crosswalk / pedestrian crossing to make the streets feel alive.

This is actually totally possible, and sounds like a cool concept. For the starting idea of NPCs walking along the sidewalk, here are a few tips. Have key points of walking positions (eg. corners, crosswalks) in a table. Each point in the table should be another table containing the position of the point, as well as possible next points. You can then use this table by having NPCs spawning at a starting point (preferably a tunnel/building). The NPC can then choose a random point from the possible points to walk to. This process can then repeat until the NPC arrives at a designated “despawn” spot (again preferably a tunnel/building).

Example of point table:

local points = {
 [1] = {
  position = Vector3.new(0,0,0),
  possible = {2,3}
 },
 [2] = {
  position = Vector3.new(0,0,10),
  possible = {1,3}
 },
 [3] = {
  position = Vector3.new(0,0,20),
  possible = {1,2},
  despawn = true
 }
}
1 Like

Do I put it on the Roblox NPC?