Simply converting Roblox's Animation script into a server script works to give an NPC regular animations, but with anything more than 5 NPCs this adds lots of lag. This game, however, has tons of animated NPCs and absolutely zero lag. How did the creator manage to accomplish this?
✓ ANSWER ACCEPTED
How did the creator of Defend The Statue make tons of animated NPCs with no lag?
1 answer
✓ Accepted answer
Most likely he is using just a single animator script, or is utilizing ModuleScript(s) to avoid having multiple copies of the exact same functions in memory at the same time.
Without actually asking him yourself, none of us will know exactly how he's doing it.
1 comment
0
Thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
He might have used threading, coroutine/spawn/delay or use ModuleScript's to remove copies of code.
Maybe he used a Module Script.