Lag upon kill / resetting

Hey! My game is getting laggier and laggier, each time you reset / get killed. I have absolutely no clue where this is coming from. I have already checked the scripts client side:

Before:

After:

This doesn’t seem really critical or am I stupid? Please tell me how I can fix this issue. :sob:

1 Like

The only possible issues I could think of for something like this is continuous errors or warnings, blocks or parts that are causing collisions or haven’t been anchored. Sometimes just having a lot of things being rendered at once can overwhelm the game too.

1 Like

Well, upon resetting the character, the parts in the game are all the same as before, so that can‘t really be the issue.

1 Like
  1. Try checking through the code to see anything related to what your saying

  2. A part might be blocked by Roblox studio and in result when you reset it lags when reloading it.

  3. Is it the same laggy Everey time?

Hi! In my game, we have a lot of scripts sadly and I’ve checked all „Character Added“ scripts. They seem to be normal. Also, what do you mean by blocking a part & yes. The game either freezes shortly or the whole game is overall delayed or laggy in general.

The 3. Question was is it always the same laggy.

And I meant to say if the part was blocked from studio it might be resetting the party or smth

If you mean by the type, then yes. It was always either game delay or lag in general. They both were always there. Nonetheless, sometimes it works more fluent for some time and then really laggy again. But what do you mean with part tho? Apologies :sob:

A part that lets say is blocked in studio that’s what I’m talking about it may be causing lag. it has happened to me before

Apologies but this seems to be a language barrier. Wdym by blocked? I can’t follow…

Is there any Humanoid thats a child of the workspace? This caused horrible lag (2-5 fps) for me.

If you show any code that would help you are asking in scripting support after all. We cannot read your mind to get the script. If your not sure then send the scripts that are causing the most lag.

Roblox let’s say would moderate the part or be “blocked” by roblox

That’s the issue. It’s a whole game with thousands and thousand and thousands of lines of code. I don’t know the EXACT CODE which is why I made this topic in “Scripting Support” since it’s pretty much related to that.

Well but why would such moderatable part be causing lag AFTER someone resets or so? This is just weird :sob:

Then it should be common sense to try to optimise the code by reading it, removing or reducing loops and other functions and also removing or combining redundant functions or instructions.

The joys of having a messy code base :slightly_frowning_face:

No humanoid in the workspace. Also, I guess htis would cause lag from the beginning either way. :sob:

Mhm, and that’s why I am rescripting the whole game from the base. However, this will take time so I would like to fix such bug before. As said, I am humanly not able to read through every code in this whole game with being 100% and all-time fully focused. That’s straight up not possible. Are there any debuging tools in Roblox allowing me to view what is causing extreme lag except the Script activity menu?

The best debugging tools is your eyes and brain. Have you once thought of looking at the memory of the client/server at all? Might be a memory spike causing performance issues. It is also possible to look through it all you just need to split the task up over multiple periods.

2024-12-24_23h31_27
grafik
grafik

That’s why re-scripting. And respectfully, why are you even being toxic in a HELP ANF FEEDBACK support forum? “Have you once thought of looking at the memory of the client/server at all?”. Thank’s for all the other stuff tho.

Im not being toxic? What made you think that? I gave you somethings to help. If I was being toxic I wouldn’t have suggested anything at all and be-raided you just like you had done.