-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When Tweens created by TweenService are added to Cleaner via Cleaner:Add(Tween), they're not cancelled.
This happens because Cleaner checks the typeof of the object being cleaned up, and Tween reports itself as Instance, but Tween:Destroy() doesn't work, we have to call Tween:Cancel() instead.
A simple fix would be to check whether Object:IsA("Tween") then Object:Cancel() else Object:Destroy(), but that's not very elegant.

As a workaround, we can always add a function that calls Cancel instead of passing the Tween directly, but the expected behavior is that Cleaner will just take care of it.
Tested in Cleaner v0.3.0
Metadata
Metadata
Assignees
Labels
No labels