Does AnimTrack = nil remove the Animationtrack from the game?

does AnimTrack = nil remove the Animationtrack from the game?

No. Your just setting the variable of AnimTrack to nil

So how can i remove it? because i get like some 256 animation track limit

Is it in a table ? Where are you trying to remove it from ?

Track:Play(FadeTime or 0.1)

local conn
conn = Track.Stopped:Connect(function()
	if conn then
		conn:Disconnect()
		conn = nil
	end
	
	Track = nil
	
	--warn("Track Destroyed")
end)

You can clone the animation , then once it is used, destroy the clone.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.