For some unknown reason, very specific maps in my game have been lagging for no apparent reason. I thought maybe at first it was just because there was a high amount of unions and parts, or the maybe the particle effects were causing it. But weirdly, maps with hundreds of more parts/unions have been completely un-effected by lag. But, if I just take the maps out of ServerStorage without the game doing it, they don’t lag. Any idea on why this could be?
You mean that you have a system, which loads and unloads locations from ServerStorage? Perhaps there is an issue in the script like constantly loading the location in multiple times, so that the objects are in multitude inside each other. You should revise the script for that sort of stuff.
Maybe try out level of detail or other solutions for game lag.
They might lag because the script loading method isn’t the best. Load maps dynamically as needed instead of all at once. It’s definitely something with the script and putting them into workspace.
or maybe your script is made so it copies the map into workspace from the serverstorage and thats not rlly the best.
instead its better making a folder in workspace that the maps will be moved into from serverstorage when the game loads a map.
if u have the copying method then maybe it copies the same map more times and thats what makes it lag.