#cloning humanoid causes memory leak

1 messages · Page 1 of 1 (latest)

fathom lichen
#
subtle rune
#

in a localscript im not getting the same problem

#

let me try a serverscript

#

no memory leak on client or server side when i do it in a server script

fathom lichen
# subtle rune

can i be put in team create in this game so i can check the server memory maybe its just games i publish

#

i friend u on my account bluediamondshield

subtle rune
#

ok i see the memory leak now

#

its only when you publish and only on the server side

#

i was able to fix the memory leak by doing

#
while true do
    local dummy = game.ServerStorage.Dummy:Clone()
    dummy.Parent = workspace
    task.wait()
    dummy:Destroy()
end
#

if you destroy after the wait then it will no longer have a memory leak

#

but you should still report this bug to roblox because it should not do that

odd dove
#

The code will run every time it can so it will gain memory. It could be something inside of the dummy model

subtle rune
#

its a roblox bug they need to fix it we cant do anything

odd dove
#

I think I know why

odd dove
#

To see the memory

#

Because when a humanoid is created it loads all the neccary things for it to work and as the loop does not give enough time for it to load and destroys it then it restarts and the memory keeps going up

solid field