Hello,
For some reason, I have been experiencing an insane amount of lag in the script editor.
My script is not even long. It’s only 1400 lines which shouldn’t cause any lag.
I’m not sure if this is a script editor bug, or whether I am somehow doing something wrong.
Picture:
Just trying to write a simple string makes Roblox Studio crash.
8 GB of RAM isn’t a lot, especially considering Studio can have huge memory leaks with this bug, with even using 2GB of your total (useable) RAM, causing Windows to freak out and forcefully shutting down the application.
You definitely shouldn’t worry about your computer, since the specs exceed the minimum requirements to run Studio. Have you tried splitting the script into smaller ones, using modules, and reducing spaghetti code?
I have tried using another script to write the code in and then transfer the code to my main script but even that is pretty annoying because sometimes it crashes. I haven’t tried using a module but that might be a good idea.
I’m assuming you mean unnecessary lines of code which might be the best idea since there is a lot of repetitive lines of code.
My script editor starts lagging at around 200-300 lines of code, and disabling autocomplete fixes it, although I chose to leave it enabled and endure the lag.
It seems to be happening when there’s many characters on one line for me. It depends on the size of the script, and it’s really frustrating!
The messier the code, the laggier it is.
While the only good thing about this is that exploiters can’t view the script and unable to decompile it because of it’s huge lag, but still a down for us.
Sounds like a deobfuscation thing you’re talking about? Well, I don’t think it depends on how many lines you have, but how many variables, functions, and whatnot the autocomplete has to keep track of?
if you install the Roblox lsp extension it will have a slightly worse auto complete but has better features like directly defining the service without Writing the variable and etc