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
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.
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.
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.