Does Instance.new("Animation") need to be destroyed after use?

For example, if I am using the following code, would I need to add it to Debris or Destroy() it so it doesn’t use up memory?

local Track = Instance.new("Animation")
Track.AnimationId = "rbxassetid://1234567890"
local Anim = humanoid:LoadAnimation(Track)
Anim:Play()
           <------------Track:Destroy() ??
1 Like

Generally speaking, you should only destroy things that are no longer being used.

1 Like

It depends. If you’re gonna use it again, then leave it. If it is only used once in the script, then you can destroy it.

you don’t have to destroy it would nothing if you did, Like what’s gonna happen if you didn’t destroy it , Nothing.

If he never uses it again, it will take up memory space that doesn’t need to be taken up.

In a big game this memory space is very precious.