Skip to main content

Tags

Adds CollectionService tags to an instance.

TypeSinceScoped
Declaration0.3.1No

Constructor​

[Tags] = {string}

Usage​

New(Object, {
[Tags] = {"X", "Y", "Z"},
})

Equivalent to calling Instance:AddTag for each string. Returns a cleanup function that removes those tags again when hydration/scope teardown runs the returned cleanup.