What happens if I destroy an object with a CollectionService tag script attached to it?

Does the script get destroyed with the object or am I just creating a ton of memory leaks, do I have to do a .changed event for the object it’s tagged to and delete itself when it detects it’s no longer?

2 Likes

I am having a difficult time understanding your question. Could you please rephrase it?

2 Likes

If the script is not a descendant of the instance you destroy, then nothing will happen to it

1 Like