Optimizing large quantities of NPCs

I have a hockey game and I want to make artificial fans in the crowd but the question is, how do I achieve this goal without lagging the game and impacting performance very much. Sorry for the brief description but this is the premise of the task. Any ideas are appreciated, thanks.

1 Like

I would personally set the network owner to the latest player that joined, or the first player that joined.

1 Like

Personally I would just use good old animations.

1 Like

You could probably just have a single script that plays the animation for every audience member (probably split them ut into two teams) and randomly play some different idle animations as well.

1 Like

It would probably be best to not use humanoids for the fans in the crowd and also run them on client

1 Like

Disable any unused Humanoid states using SetStateEnabled.


I just found a really helpful thread for you:

4 Likes