TweenService forgets its instance if it has no active references

When creating a Tween using TweenService, the instance is collected unless it has an active Lua reference. This causes code that aims to reference (and maybe later parent) the instance via Tween.Instance to fail because it is nil. Likewise, code that relies on Tween.Completed to fire will not work as it never fires despite calling the tween to start.

The bug happens in game, and I’m not sure how long it’s been happening. I’ve provided a single script repro below.
bad_tween.rbxl (21.2 KB)

10 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

Please note that filling a bug report does not guarantee that it will be fixed once triaged.

1 Like