Hello! I’m making a tycoon and would like to have NPC’s walking around their place with a random function of whether or not they want to buy an item in the place. I’ve got a list below of my needs:
- Code to get NPC’s to spawn into the players building and walk around (I know it includes pathfinding service)
- Random function to get a the NPC to choose something from their store (you could just make a script where it chooses something random from a table)
- How would I reduce lag, as I know Humanoids tend to lag games a ton?