Unknown Script in Dev Console causing major lag spikes

I am currently trying to figure out what is causing major lag spikes when there are over 30+ player in my game. This is a addon to my previous post Massive Lag spikes with 30+ people in game which someone told me that in the 2 clips:

Clip 1 (main game): https://www.youtube.com/watch?v=1hCYMPuFTZw&ab_channel=iTzEmail
Clip 2 (no map): https://www.youtube.com/watch?v=2IMyhTCliY4&ab_channel=iTzEmail

There was a script in the Developer Console called ‘Unknown’ I am aware this is a bunch of scripts that roblox cannot identify in the console but I am wondering what it could be as this could be my culprit. If you have any idea on this on what it could be.

You can see here (in the second clip) when it’s nearing about 40 players, this Unknown script spikes to over 87% and 18000/s rate.

Any help is very much appreciated!

2 Likes

Did you get an answer?

Thank you

1 Like

Id recommend testing in studio, probably a local server as you mentioned a server with 30+ players is mainly when it happens.

It could be a memory leak.

What I suggest you do is disable a batch of scripts till this Unknown disappears, then narrow it down to which script it is.

You can also use MicroProfiler to perhaps identify the issue.

Didn’t realise this was such a old post :sob:
Refer to my most recent comment

There was an open-source module we used for weapons, and it had a memory leak. I swapped the module, and it worked perfectly fine after that; it could run up towards 90+ players fine.

I would recommend looking at every function of your game individually and pinpointing it there. Try removing any open-source modules you are using and try a different one.