How to improve anti-lag script?

[removed by author - 10/1/2022]


Couldn’t you use streaming enabled for this?


We have streaming enabled, however we found that it doesn’t do very good on its own, as some content was not getting unloaded. Causing a lot of lag spikes. Streaming is still on, just this script is meant to help it do better.

This is our current configuration;

Edit: Marking this reply as a solution because Im no longer trying to improve the script.