Why is there so much lag in my Roblox Experience?

I know this has been a topic in Roblox games, and I don’t mean to make duplicate posts if this sort of thing already exists. I’m just looking for feedback on a little building I’m making.
I’ve been working on a Facility map for my game. It’s around 1250 parts, and I’ve never had this kind of lag on a Roblox game. I have a relatively fast laptop that supports anything at high FPS and parts, even at 10 graphics. It’s only now I’ve been getting this lag, as I haven’t been getting it in other Roblox places.

Is there a potential fix to this issue?

Ingame, I get around 20 frames.

Corrupted Memory - Roblox - The game link. @Monkepath

That memory usage is off the :chart_with_upwards_trend:.It should not exceed 1gb and what is the object density in the parts of the map how optimized are the textures.These are all the possibilities of the cause of lag

Most parts are at least 1 stud thick, and they don’t get really big.
2.
There are no textures.
3.
There are also minimal scripts.

This all makes sense, its just confusing because I’ve had even more parts and less lag. Maybe it’s a CPU or space issue?

Its not a game, its an experience :sunglasses:

In all seriousness, have you tried checking if you’ve had any illegitimate plugins/backdoor plugins/any scripts in your game?

Make sure to check parts/models if they have any scripts, and do a search via the search in the explorer menu for anything out of the ordinary.

Also try lowering your graphics down as well.

I dont have many plug-ins, and I’m sure that none are backdoors.
I’ve checked all scripts, and I’m sure that everything is legitimate as well.
Even at 1 graphics, lag still goes off the walls.

Can you show the plugins you currently have installed (both disabled and enabled).

And show all the script names in your game (explorer menu)?

Have you also tried anchoring everything and seeing if that fixed it?

Have you checked if theres an absurd amount of weld parts or things in the parts of the map?

Have you had a look at the microprofiler


Most of the scripts are just door scripts, and the rest are not malicious at ALL, I’ve verified and made sure about it.

(some plugins i dont use, like Motor6dMaker or ModelResize.)

Some parts are supposed to be unanchored for dynamic reasons, but I have 99.9% anchored.

It may be an absurd amount of welding, because I’ve noticed most parts create welds without telling me (thanks roblox).

How many parts does it have. If there is a lot of parts it could lag Roblox Studio and sometimes your game (idk 100% about your game)

Update: I deleted all the welds with a script, and some of the lag went away.

1270 to be exact. It’s in the post.

you can probably try using the command bar to loop through workspace and search for welds and delete them.

-- Make a backup of your place first, I have no clue if this line is correct :sweatemoji:
for i, v in ipairs(workspace:GetChildren()) do if v:IsA("Weld") then v:Destroy() end

Just make sure you don’t delete any important welds you have in your game (if you have any).

Can you also try disabling all your plugins and playing the game again to see if lag is still present?

Part amount shouldn’t be much of an issue unless you decided to cram 500 parts into one single location. Or you go showcase levels and have 15000 parts.

Deleted all the bad welds, still a lot of important welds, but it shouldn’t be the issue. There’s nothing else ingame and I don’t know what the issue is. I’ll try moving maps in serverstorage to other places and see if it works.

Can you provide a link to this place so the memory usage can be checked? Using F9, you can open up the log menu which also lets your check exactly what is taking up memory (and much more), and being able to go into this place and analyze the logs would help narrow down what the problem actually is. It’s not “just” memory either, since your CPU response time is in the hundreds of milliseconds.

Yikes, that’s a lot of doorscripts. Do you think you could provide us a copy of your current game? (Or if you don’t exactly want to give up your game, just the door model script itself. It might be due to scripts, since a 1270 part game lagging like this isn’t exactly believable for building.

If you can try to make models to organize it and reduce lag I have done this in my games and it helps a lot with big builds

The Doorscripts aren’t really big, but they’re around 100 lines and use tweenservice to operate. This shouldn’t create lag at all because there aren’t loops or anything serious in the script. Plus, it was lagging before I put the doorscripts.

I deleted all the unnecessary welds and I can’t really give up my scripts or place. I guess I’m just really confused why there’s lag in my game but not in my other games.

Turns out, moving my map into a separate baseplate proved to be nice. There’s no lag, even with all my doorscripts and stuff.
Thanks guys for the help, I really appreciate it.

1 Like

Oops. Looks like I was late to the conversation.

I would’ve told you to have put it in a separate place, as normally random lag and errors are due to the place malfunctioning for some reason.

Glad you solved the problem.

1 Like