Delayed scripts in my game

Hey there.

So, I have a big problem that I need to address. Whenever I play my game on Roblox, everything is a bit delayed. If I click buttons it takes about 3-5 seconds before it actually does something. This isn’t the case for Studio. Nothing is delayed there. I know for a fact that is not the amount of parts because there is less than 1,500. It isn’t the frame rate because that runs nice and smooth too. It is there to fix this because this can be annoying to players, including myself.

Are these server sided scripts? Also whats your ping when the delay occurs (also check the server ping im dev console)?

1 Like

The ping is ~ 168. If it is because of the ping, how would I fix that?

Check your server script activity

If the activity is too high, you need to optimize the server scripts.

Is 0.5 classified really high?

Not really, but can you post a screenshot?

Sure:

Everything seems fine with your server script activity, have you checked your server memory then?


I once had a game with over 1500 untracked memory; which caused a massive server script delay and it was because I put SERVER SCRIPTS under GUIs instead of localscripts (I was dumb at that time)

Also you gotta check the memory in old server, not in a new server because the memory leak happens over time and it doesnt effect the server that much for the first few hours.

Here is a screen shot:

Are you having the delay issue in that server?

1 Like

I have figured it out. I have been using way too many loops in one of my scripts and once I modified it, it has stopped. Thank you so much for your time.

1 Like