When you start a animation with the “go forever” option. The animation will loop forever…
My question is if I was to just :Remove() the entire object from the workspace, will that also stop the animation? I know that sounds silly but, seems to be a lot of concern on turning off the animation. I’m hoping this will work and not lead to memory leaks, by just removing the object…
:Remove()
shouldn’t be used, and I don’t think the animation will stop as it’s already playing. It will only stop if you make it stop by moving, jumping etc.
Maybe I need to go a bit more… This is animations of fish swimming. They are in a school that randomly spawns around. I just :Remove() the school and :Clone() it somplace else. I know this works fine as I have it working. My Question is: Am I leaving memory leaks by not turnning off the animations and simply using :Remove()?
I might leak, however, I don’t think it will be at a great effect.
Well plan on spawning the school many times over and over… Just a bit worried about residual anims running in the background forever.
I think it may be best to :Destroy()
the animation and :Clone()
it every time it spawns.
Major hassle or I would have done it that way. It’s a bit more complicated than just what is stated.
The question is… Is using :Remove() also killing the animations in memory.
:Remove()
is deprecated, it shouldn’t be used.
Ya I ment `: Destroy()… I just need to know if it’s also killing the animation in memory?
It should kill the memory, however, I am not certain about it.
Wow I was using :Remove() here and there along with :Destroy()… Thank for the tip.
Also by it’s nature :Remove() may have been doing what I was fearing…