My game freezes when someone joins after a few minutes of server time

I’m not quite sure of what category to put this under, but I’m going to try to explain this the best way I can. Essentially, after about 10 minutes of server time on my game, if someone joins then the games chat completely stops working and other players appear to freeze. This issue has been going on for years now and I’ve done so much to try to stop it, but nothing has happened.

I’ve even tried redesigning the game a few times, once again nothing happens. I haven’t used any free models with scripts i’m aware of. Its possible that I copied one of these into the new game which appeared to be a harmless script. I’ve used several plugins that scan for backdoors, and nothing. I’ve searched through almost every single one of my scripts, and nothing. I’m really at a low point here, I want my players to be happy and enjoy the game without having to rejoin after a few minutes. On a side note, yes, I’ve checked the output but found nothing.

If anyone could give me any advice on what to do, that’d be great.

Thank you for reading, and have a great day.

It honestly sounds like a memory leak.

You should use the developer console in-game by hitting F9 and observe the client memory, if it’s consistently getting higher and higher after 10 minutes than its definitely a memory leak.

My best guess is that there’s a block of code running somewhere that you either can’t see or don’t yet see that is doing something it shouldn’t, either intentionally, or by bad design.

I suggest you use your stat elements under the view tab of studio to help diagnose where you’re actually losing performance. Whether it is render related, network related, or physics related, it will be easy to identify.

One you identify roughly where the problem lies, you should try to either replace or remove the problem scripts

If you can’t figure out which script is causing the problem, it’s best to start disabling them one by one, and re-testing to see if the problem persists. It’s a long hard road to find memory leaks sometimes, but it can be the simplest loop doing something wrong that can cause an entire game to break.

Best of luck, feel free to post any of your findings and I will do my utmost to translate them for you.

2 Likes

I just tested it out and found this
image
This was only from hitting the test button and opening the summary. I’m not really good at understanding what any of that means.

It means that your game is disconnecting from roblox.com

How can I fix that? How do I know that for sure and what does that even mean?

Can I see the game so I can check if it’s a memory leak also?

Sure, the game is here: Air Time Trampoline Park! - Roblox

its happening, the lag (done to fill space)