Occurring randomly, the game gets lag spikes to around 50K ping per person for a few seconds, and then comes back down.
I used the script profiler to get some information,
There shouldn’t be any scripts causing issues because the game wasn’t updated for a while, nothing changed or published this started happening after a Roblox update. Maybe it is on my end so I included a micro profile and some memory trackings.
In that case, that’s 100% a roblox issue. Roblox servers have been really bad in terms of performance for me, and high ping is pretty normal, but 50K ping is not normal.
You need to be a regular rank, but I don’t think they have ranked anyone that in like 2 years. You would have to try and DM someone that is regular and they may be able to help.
i have been having the same issue for a couple weeks now and still havent been able to figure out why this is happening it has to be a roblox issue because i have created a new game and it is also happening there.
I have no clue what to do, I’m not sure what’s happening at all.
I’m the developer of the FPS Template, and I can tell you right now that you have a huge amount of unnecessary scripts. For instance, why do you have a script called “Audio Source” in every single part? That’s horribly inefficient.
The other issue is that you’re using too many raycasts. Raycast operations are very expensive, and should be used only as a last resort. Not only do raycasts directly impact your client-side performance, but they also make networking more expensive.
You should consider removing all of the raycasts. Raycasts should be used for aiming, except in the case where you want to shoot through objects. You should also remove all of the unnecessary scripts.
Finally, I’d highly recommend running your game on a server and taking a look at what scripts are giving you the most performance issues.