Mysterious Memory Leak

my game’s got this super weird memory leak. like, the memory just keeps climbing nonstop and i have no idea why. untracked is spiking like crazy but luaheap looks totally fine. i tried using luauheap to figure it out and the array section keeps shooting up even though literally nothing inside has changed. i’m losing my mind over this :sob: i’ve got a november deadline and i can’t even work properly cause of these stupid memory leaks. someone please help!!

There is nothing we can do if you don’t provide more details, like showing the problematic script’s source for example

it doesn’t show any scripts spiking by 30000 I don’t know what the problematic script is

yeah, you’re on your own twin :sob::victory_hand:

It looks like you may be creating a bunch of arrays that hold data and not freeing them when they are unused and hence they’re taking up memory.
It also looks like you may be creating a bunch of instances and then not cleaning them up when unused.

Do you have any scripts that might do stuff like this?

Most of my scripts that use “table.insert()” clean them up after
I regularly use maid in my game also.

Does the untracked section just spike randomly or is it occurring during specific events?

as soon as i join its just 700MB+ and slowly rises


but im also unsure cause i disabled every script in the game and its still above 700mb


I have figured out roblox is the cause for the memory leak cause this is a literal baseplate game i just joined and i have been worrying about my game for no reason and my game is probably fine