Is this the source of my frame rate drops / lag in my game?

Hello so im making a game and everything is going great accept the frames keep dropping after some time. I decided to check the script log, and this is what i saw

https://gyazo.com/11d0e47d82e84d723c9562964e2d82e0

Is this a bad thing? I feel like it is the source of my lag. Everything other than that is at around 200 - 300 per second or 0 (most are 0). This script how ever seems to have a lot of updates, and it keeps climbing

Hey, I was looking at the video in the link you sent and yeah that’s definitely the source of lag

image

This is way too high, you should try optimize it and get it as low as you can

Most likely, that is too much for a normal NPC script.

it has around 15 modules attached to it (if you count other modules requiring others its probably more), so thats why. Though, i do break all while loops, but i should go back through and scan and see if the issue isnt fixed

I believe how active the module is, while also having connections will downgrade the frame rate / lag.