Hi guys,
my game is a bit laggy from time to time (interval ~ 9-10s)
Fps drops to 3-4 for a moment and i can’t figure out what is the problem
I saw that every big change in “contacts” is followed by lag. Do you know what does this “contacts” mean?

This is how my CPU looks like:
Depending on what your specs are for your PC (GB of Ram, Graphics Card, Storage); that could be what’s causing your issues with lag.
When it comes to your game itself… I’m not exactly sure what contacts is for myself, however perhaps the moving parts could be what’s causing stuff the spike. The more moving parts you can see; the more your client will lag. The client is having issues tracking the movement of all the items at once. I would definitely try removing the moving parts and then test the game again.
Just one final note; make sure all normal scripts that can be in ServerScriptService, are actually in ServerScriptService, & make sure you don’t have any excess code just lying around that’s running in the background for no reason.
1 Like