Destroying itself or its parent, can the script not be garbage-collected or stopped?

Scripts destroying themselves:




(It can’t stop the script)

Script destroying another script: https://streamable.com/5omruq
(It successfully stop the destroyed script)

Script destroying its parent: https://streamable.com/mi31yn
(It can’t stop the script)

I’m too confused… :frowning:
I made many scripts destroying their parent when humanoid dies.
Do i have to fix them?

1 Like

I believe if you stop printing with script then it will be GC’ed, because technically you’re still holding a reference to the script, if you stop printing script or script.Parent, it should get GC’ed.

1 Like