StreamingEnabled and NPCs

My game’s main place contains 100+ NPCs, server-sided but animated on the client. The map is gigantic (130k+ parts), and being an already complex game script-wise, mobile users experience crashes once trying to load in. On PC and console i’ve also had frame drops (going from a smooth 144+ fps to barely reaching 100, after optimizing local scripts) on max graphics.
StreamingEnabled would solve this problem for the most part. The issue is that my NPCs are animated client-sided: using StreamingEnabled makes all my scripts error (cause they don’t find the NPCs or their primary parts).

Is there a way to exclude NPCs from being streamed out completely? Or is the only route I can take adjusting my local scripts? Thank you!

1 Like

If your NPC is a model (which I assume) you can change its ModelStreamingMode property to “Persistent” which basically means that it’ll never be streamed out. Hopefully this helps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.