Collection Service Question

If I tag a part with collection service when I clone that part will the tag be cloned too?

1 Like

Yes, the part clone will have the tag too.

1 Like

This is something you could very easily test for yourself. Please attempt to do these kinds of things yourself before posting topics. You could resolve this with a quick test in a few seconds as opposed to waiting several hours for someone to reply with a β€œyes”.

local CollectionService = game:GetService("CollectionService")

local first = Instance.new("Part")
CollectionService:AddTag(first, "Test")
local second = first:Clone()
print(CollectionService:HasTag(second, "Test")) -- True = Yes

Tags are serialised on the instance themselves. Cloning does bring along that serialised data as well.

3 Likes