My game is freezing every 5-10 seconds and sometimes it takes longer, the server also ends up completely crashing after like 30 minutes. I have been trying to figure out why but still cant figure it out and I need help.
this is the game [❗UPDATE] East Coast [ALPHA] - Roblox
Check if your non-moving parts are anchored. Try enabling streaming. Try disabling G-Sync (if applicable). Can you tell if this is happening in the code or not?
its not FPS lag, streaming enabled is already on and the game performs at a good framerate
Are you talking about the server lagging? Try playtesting the game in studio.
yes and it does not lag at all in studio but when I join the game with other people is when it lags
While loops with no wait() or free models maybe
Either looped code, free model viruses or high amounts of unanchored parts.
you got a loop that never closed (inf loop) somewhere or there are viruses
another thing is if you create a loop when a player joins (you said it starts to lag once people join) and those loops are putting too much on the server
it might be looped scripts that are over loading the server
maybe it’s something with the free models having a big/loop script executing after some time or just unanchored parts
its not a virus, not unanchored parts, it only happens when someone joins the game it freezes for half a second and then it goes back to normal, also the game crashes after about 10-30 minutes