CollectionService failing to replicate tags

Whilst working with the new CollectionService and the GetTagged method associated with it, I encountered a bug in which specific tags I’d been setting to parts wouldn’t replicate to my client.

By narrowing it down, I worked out that tags set from a specific script of mine weren’t replicating.

In particular, tags set after a ‘game.Players.PlayerAdded:wait()’ yield would not replicate to the client.

Attached is a repro for the bug:
CollectionServiceBugRepro.rbxl (16.0 KB)

2017-08-01_19-40-32

By starting up a server and clicking on the various buttons, different parts with tags are highlighted. The green parts with tag ‘Gamma’ don’t go transparent like the others, showing that the tag for them isn’t replicating. Note that the tags do replicate from server <-> server, but not from server → client.

Server: http://i.imgur.com/O0DM8IS.png
Client: http://i.imgur.com/YoCrHma.png

Thanks for reading!

3 Likes

I believe @Tiffblocks has a fix for this

1 Like

Unfortunately, the tags only replicate when the Instance is replicated to the client for the first time (e.g. after creating it or moving it into the workspace from ServerStorage). This is a bug that I have fixed and will hopefully be out in a week.

9 Likes

Thanks for the fast response.

Will there be a post anywhere when this fix is live on production?

I’ll post on this thread and in the announcement thread.

2 Likes

The fix is now live.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.