What are these lag-causing scripts, and where can I find them?

  1. What do you want to achieve? Getting rid of lag caused by messy code or useless scripts.

  2. What is the issue? There are these 2 scripts I’ve found in game on the dev console in the scripts tab which are the most active and are causing lag.


    However, I check the script performance tab, and I don’t find any of the two.

  3. What solutions have you tried so far? Attempting to look the “Loader” script up, and changing my admin to a new one (the old one was a bit laggy too, and I did so because that’s the only place where a script named “Loader” could have been, however the script still exists.)

This might be the wrong category, but I am not sure where else to put it. Can someone tell me how to find them?

1 Like

Look for any unnecessary loops, or anything using wait() as that can clog up the server.

Use Script Performance in Studio, you can locate the script easier.

Like I said, I can’t find it. It’s nowhere in the tab.

Disable all your plugins/remove any admin. It could be a backdoor.

I’ve swapped the admin, the Loader is still there. Also, it’s the same in the live version of the game, which means it’s already in the game.

If it’s in the live version that means it could be a backdoor.

But from where? I recall that every model I have used is checked for viruses. I haven’t gotten any free models lately, except the admin of course.

Use Ctrl+Shift+F and search for ‘require’ and then search again for ‘getfenv’




I found something,


and it might be the culprit. (pasting the code in however opens this)
image

It’s either HD Admin or this script (local GetLatestTool).

Or remove that elevator thing.

1 Like

It appears to be the MainModule of the elevator, and I can’t find a way to read it. I’ll remove the line and see if it still functions.

1 Like

No, it will not. I forgot to save the script too. (Nevermind I could undo it)

Now i just need to figure out WHY it’s causing so much lag.

Looks like I’ll have to stick with making my own elevator. Hey, at least I’ll be able to customise it more easily. Now for that other script though. And the script called Main, doesn’t look familiar to me.