Bad FPS on my game

I keep getting lag on my Roblox game! Do the amount of scripts in the game affect the frame rate of the game because I have 150 of them. I know parts do it, but I only have 3,000 of them in my game, or is it anything else. I would very much appreciate it if someone could give me an answer.

Open developer console in your game, go to Scripts and check which one has the highest activity.

If one is to cross %3, then there’s probably a problem.

1 Like

No, none of them are higher than 3%…

This may be just on how bad your computer is or how high your graphics is, if it is on auto, I recommend to turn it to manual and put it to 3.

It’s not my computer because when I play jailbreak, it’s nice and smooth.

Do you have a virus in any of your plugins or models?

No I don’t use free models, and I rarely install plugins but when I do it has like 90% likes…

Do you have the game link, I will see if it is laggy on my computer if you want.

Here you go: (FIXED) Tapping Legends! - Roblox

Scripts cause A LOT of memory and lag into games, but parts, on the other hand, can cause lag if they are meshes and used every single stud.

3,000 scripts?!?!? That is way too many for a single simulator game especially all the modules and the number of lines in each of them.

There was a post and I discussed with IGottic about what causes lag and bad FPS on Roblox games, I’ll share the post here: POST

If I had this many scripts in my game I would nuke it.
How in the world did you end up with that many?

Every script is an active coroutine thread on Roblox. Collectively, 150 is enough to end any man’s career.

I would seriously evaluate how and why those scripts are there, and get creative about reducing them. They are your source of lag.

1 Like

No, he said 150 scripts and 3,000 parts, which is still too much for scripts.

2 Likes

Any while loops constantly looping throughout your game is probably the reason.

If that’s the case, instead of using while loops, try using GetPropertyChangedSignal.

2 Likes

Sometimes this may be caused by big models or a lot of particles like smoke, beams and other stuff

Also too many NPCs can cause this.
I made some research,so I don’t reccomend you to try anti-lag scripts because they do not work and they can’t stop process to stop lagging.

You may also be using some high graphic standards(like the things that you see in showcases and ultra realistic games).If your game don’t have to be super realistic try to use voxel lighting instead of ShadowMap,because this technology manage the shadow of every single part in the game and this may cause lag.

If you are sure that you don’t have any viruses try to check this things I mentioned here!

1 Like

Quite disappointed that nobody here yet has told you to use the microprofiler. Use it while you’re ingame and you will see which operation is increasing your frametimes. (CTRL+F6 and CTRL+P)

you have a decent amount of parts, if you use unions or meshes frequently throughout the game, try lessening it

Maybe this articles from the developer hub can be useful!
https://developer.roblox.com/en-us/articles/Improving-Performance

This is a lot of lag,I tested my game now and I reach this amount of memory usage only when I’m close to areas with a lot of smoke and other things that may cause lag

Press CTRL+P to make it show the labels