CollectionService

extends Instance

Class fields

FieldXML typeValue
NamestringCollectionService
summarystringManages groups of instances using persistent, replicated tags.

Functions

9
AddTag
(instance: Instance, tag: string) → void
FieldXML typeValue
NamestringAddTag
summarystringAdds a tag to an instance.
GetAllTags
() → Array
FieldXML typeValue
NamestringGetAllTags
summarystringReturns all tags currently used in the DataModel.
GetCollection
(class: string) → Objects
FieldXML typeValue
NamestringGetCollection
Deprecatedbooltrue
summarystringReturns the legacy collection for a class.
GetInstanceAddedSignal
(tag: string) → RBXScriptSignal
FieldXML typeValue
NamestringGetInstanceAddedSignal
summarystringReturns a signal fired when an instance enters the tagged collection.
GetInstanceRemovedSignal
(tag: string) → RBXScriptSignal
FieldXML typeValue
NamestringGetInstanceRemovedSignal
summarystringReturns a signal fired when an instance leaves the tagged collection.
GetTagged
(tag: string) → Objects
FieldXML typeValue
NamestringGetTagged
summarystringReturns DataModel descendants with the given tag.
GetTags
(instance: Instance) → Array
FieldXML typeValue
NamestringGetTags
summarystringReturns the tags applied to an instance.
HasTag
(instance: Instance, tag: string) → bool
FieldXML typeValue
NamestringHasTag
summarystringReturns whether an instance has a tag.
RemoveTag
(instance: Instance, tag: string) → void
FieldXML typeValue
NamestringRemoveTag
summarystringRemoves a tag from an instance.

Events

4
ItemAdded
(instance: Instance) → void
FieldXML typeValue
NamestringItemAdded
ItemRemoved
(instance: Instance) → void
FieldXML typeValue
NamestringItemRemoved
TaggedInstanceAdded
(tag: string, instance: Instance) → void
FieldXML typeValue
NamestringTaggedInstanceAdded
Browsableboolfalse
TaggedInstanceRemoved
(tag: string, instance: Instance) → void
FieldXML typeValue
NamestringTaggedInstanceRemoved
Browsableboolfalse