Schkr1
(Schkr1)
#1
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
D1CEL
(D1CEL)
#2
Generally speaking, you should only destroy things that are no longer being used.
1 Like
Ejo2012
(Ejo2001)
#3
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.
martearo
(Uncle_Dinero)
#4
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.