Game getting so much lag

My game start yesterday having some lag issues for all players
And today, it’s even lagging more

I didn’t did any update but it still lags even more with the time, even if I shutdown all servers, the lag continues.

This could be some script problem that is making the game lags?

I think it’s weird because with no updates made, the game started to lagging even more.

while true do
if you have more of this function in your scripts it causes lag
console spam outputs/prints/errors causes lag
so you should remove print() if it’s spamming in output like numbers or “Added” “charadded” something like that

To find what scripts have “print” in there go to: Roblox Studio > View > Find All / Replace All
then search for: print … and remove them
If you got random assets from toolbox some of them have viruses
like destroying your game/stealing/sharing/spamming

Hope it helps

1 Like

From that 3 things, I only have “while true do” but, all are dealyed 1 second from each repeat, it still can be that is causing the lag?

show the script maybe i can help

loops can actually lag your pc, is there ANY suspicious scripts you think it causes or scripts that has errors init?

no one of my scripts give errors, and the lag is server side, I tested with a lot of devices, all get the same lag

The chat is with 2 seconds delay
The remote events with 1 second delay

Each 4 minutes the game freezes for 2 seconds for everyone

your internet maybe? this happens when someone is downloading

There’s not any specific script
The lag started from nothing, without any update, it started

It’s not about internet because it happens to all players who play, I already tried with friends

can you save the game and try running roblox studio on classic baseplate?

Oh yea, I forgot to say, in studio, all game works fine
It’s only in Roblox Player that lags

Loops don’t lag your game, its what you do in those loops that lag your game.

However, what I would do if I were you, I would load in studio a previous version of the game, back when it did not lag so much and see what changes you have made.

Then that will narrow down what is the cause, and you can have a better chance at solving the issue.

The problem is, all versions lags too (and the lag just started yesterday, but even 1 month before version now lags)

do you have good specs or did something happen to your pc
idk im running out of ideas

I’m using a gaming pc tht I bought some weeks ago

Then there are really only a few issues that could cause this…

  1. You are trying to do things that Roblox is not really designed for
  2. You are doing things Roblox IS designed for, but just not doing it the correct way
  3. You have malicious scripts that are running somewhere in the game.

Uh, strange, because I never use free models or somthing like that, is all made by me, and the game doesn’t has so much advanced scripts, it’s just a simple JoJo game

But btw, you can try the game here to see if it lags for you

Most likely its your internet connection.
You said it works fine in studio but lags in a live game.
Studio doesn’t have to talk client to server between different locations, it talks client to server locally.

So if the lag is in a real game, your connections is slow talking to the server and it talking back to you.

didnt he say he played with irl friends
or were they all in the same house

Under the view tab in studio, click script performance. Here you can see which and how much a script runs (activity). Then find one that spikes activity and rates and that script could possibly be lagging your entire game.
image