TagUtils
Wrapper for collection service to make it easier to work with tags.
Functions
OnInstanceAdded
TagUtils.OnInstanceAdded(tag: string,--
The tag to listen for.
) → ()Wraps around GetInstanceAddedSignal and calls the callback for all existing instances with the tag as well.
OnInstanceRemoved
TagUtils.OnInstanceRemoved(tag: string,--
The tag to listen for.
callback: (instance: Instance) → ()--
The callback to call when an instance with the tag is removed.
) → ()Wraps around GetInstanceRemovedSignal.