How would I make an NPC line system?

What do you want to achieve? An NPC line system where after serving the first NPC in the line, all the other NPC’s move forward and you can serve the next one.

I already have a majority of the system done, such as spawning the NPC, but I am wondering how I should handle which place the NPCs are in and changing them, as the current system I have is very buggy. Should I make the NPC’s position int values in ReplicatedStorage, or a variable stored in a script? Let me know how you would go about this, thanks!

3 Likes

You could just simply build invisible parts, that NPC will move to, and maybe like give them numbers as names. Each number would refer to position in the line, then you would just make NPCs move to it.

1 Like

Thanks for the help, I was trying to come up with a way to make this work but couldn’t. The line system now works pretty well.