Game doesnt lag in studio, but lag spikes occur in game

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,



I fixed these leaks and the game still had lag spikes.
Here’s a video of the game’s script performance tab.

Game link.

And a 60-second micro profile.
log_BA5FD_microprofile_20221227-125833.html (3.1 MB)

1 Like

Bump. Need someone knowledgeable or staff to check this out.

2 Likes

bump again really need staff to check this out.

1 Like

Do you know the exact script that may be causing the issue?

1 Like

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.

1 Like

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.

1 Like

Well, if it really is, i cant really post it to engine bugs. Is there a way we can move this there?

I can’t do it either, you have to message someone or ask somebody.

Message who exactly? Is there even anyone who can move it?

Extra; do you know how to get access to engine bugs?

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.

Need some staff to come check this out.

Update: reverted to a version that was 3 months old and worked fine then, and the lag was still present. This is definitely a roblox issue.



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.

What do you mean by a new game? Like a baseplate? or a game with a few scripts?

game with few scripts and even tried a baseplate with nothing and there was still lag whenever i joined on my alt

Yep, Roblox staff are probably on Christmas break so i guess we just gotta wait.

how much???.. is been a pain to explain the players that is a roblox issue

I left some info here. There’s also a workaround in the topic above.

It helps a bit but doesn’t fix the issue altogether.

1 Like

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.