Tag (CollectionService)

A string label on an instance that scripts can search for.

Think of it as A coloured sticker.

AddTag and HasTag mark and test instances; GetTagged returns every instance with a tag, and GetInstanceAddedSignal fires when a new one appears. Tags set on the server replicate to clients. A tag does nothing by itself until code looks for it.

Where the picture breaks

A sticker does nothing until code looks for it, and a tag on the drone's root does not tag its children.

A tag is a string stored on one instance and replicated from the server. Behaviour comes from the code that queries tags, which is why tags suit marking things for systems such as raycast filters, pads and pickups.

See it with the rest of the analogy cast

Official reference: create.roblox.com

Related terms