While using StreamingEnabled and replicating changes to a bunch of individual persistent instances, the script will reach its allowed execution time and timeout. This issue only appears to occur during the initial loading phase of a live server and will not occur in studio nor after the server has been loaded for some time as far as I’ve seen.
In my case, I am cloning <1k Sound instances into various attachments within a persistent model. If this action is completed before the first client loads into the server, the script will never time out. However, if this action is completed while the client is just joining the server, the action will timeout every time.
Adding in the instances while the model is parented to nil, avoiding replication, then parenting to workspace seems to remove this problem.
While streaming is disabled, the server is able to handle over x10 the amount of replications without ever timing out albeit with a moment of lag. I expect brief lag to occur during this operation, however I would never expect my scripts to timeout.
I wasn’t able to make a repro file for this one. This bug may be related to another bug report, but I can’t be sure.