Does calling :LoadAnimation more than once lead to memory issues?

I’m calling :LoadAnimation() on a humanoid many times with the same animation. Will each load replace the original track, or will it keep loading new animation tracks and lag out my game?

1 Like

Im not sure how the backend of the humanoids/animation controller handles dupes, but its more than likely that roblox dosent automatically nullify the previous load, especially if its with different animation instances.

To be on the safe side, I would try to reuse the same loaded animation as much as possible to avoid a potential mem leak.

Even in the case that you dont, I dont think animations are all that intensive so you should be alright if you end up with a few dupes here and there