i have 6 npcs, same script, same tables, all pathfinding to houses. when i run the game, i have 2 tables for NPC color and NPC name.
when i run the game they all end up having the same name and color. i even tried math.randomseed(tick())
but nothing has changed.
Reference a different math.random before the choosing of each name and colour, ex.
local a = math.random(1,5) print(a) local b = math.random(1,5) print(b)
or if you're using a loop you can just redefine the variable every iteration