What do you want to achieve? Keep it simple and clear!
I was doing some testing and I found cloning a dummy with a humanoid in it causes a memory leak. I was wondering how I could fix this issue since I clone the character in my game to create a decoy effect and I need the humanoid to simulate the health bar and regular movement.
What is the issue? Include screenshots / videos if possible!
Dummy with humanoid:
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried destroying the humanoid before destroying the model but it didn’t change anything.
I tried testing the first scenario with the humanoid, but the memory seems to ramp up before going back down, like a sawtooth. Are you sure nothing else is happening?
yes this is the only script in the game, its happening with both physics part and instances and the script is in serverscriptservice. Also when i do this my ping and recv are really high for some reason
I do see the memory leak with physics parts, but instances doesn’t seem to rise that much. Granted, I am testing in studio, not a real game. If this is a real game, would you mind making it public and sharing the link?
I’m not sure about the server, but instances on the client seems to climb. However, physicsparts seems to fluctuate. It might be worth messaging someone from @Bug-Support with the place file. Just make sure it is absolutely this script that is causing it.