Is it a good idea to destroy tweens after they have been played?

is it a good idea to destroy tweens after they have been played? if not are there any recommended practices for handling tweens should they need to be recycled or whatever? thanks! :slight_smile:

local function OnTriggered(player)
	print("prompt was triggered by "..player.Name)
	local tweenInfo = TweenInfo.new()
	local ZoomTween = TweenService:Create(camera, tweenInfo, {FieldOfView = 50})
	ZoomTween:Play()
	ZoomTween:Destroy()
end

Hi. Theres not rlly a need for destroying tweens since they donโ€™t eat up a lot of memory, but I personally recommend you to wait until a tween has completed, then clean it up

2 Likes

cheers mate, i appreciate the feedback! (:

1 Like

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