Skip to content

Trove: The behavior of AttachToInstance differs from what is documented #147

@lolmanurfunny

Description

@lolmanurfunny

The :AttachToInstance() method listens to Instance.Destroying, this is no doubt unintended as the docs imply that it uses Instance.AncestryChanged.

The doc's description: "... Once this instance is removed from the game (parent or ancestor's parent set to nil), the trove will automatically clean up."

However, due to the nature of the Instance.Destroying event, the trove will not clean up unless the instance's :Destroy() method was explicitly called.


https://github.com/Sleitnick/RbxUtil/blob/main/modules/trove/init.lua#L370

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions