ShouldDeliverCallback Firing Multiple Times

Hello. After trying out the new TextChatService I noticed something strange with the ‘ShouldDeliverCallback’ callback of TextChannels. For some reason, the number of callbacks scale with player count without any reason or cause. If I’m failing to understand something, or if I messed up somewhere, feedback would be greatly appreciated as this Issue has been annoying me for a bit, and I can’t find an answer anywhere.

Edit: To clarify, Image1 shows me typing in chat once, with only 1 output. As soon as I got my friend to join and talked once more, I get 2 additional outputs instead of 1.

I attached some images of both the code that was used and the demonstration.



Code

Where’s your script located? I’m guessing you might’ve put it somewhere that gets copied for each player

It’s within ServerScriptService, so only the server should be able to access it.

Are you sure the “Your friend has joined” message isn’t triggering ShouldDeliverCallback?

The join message doesn’t trigger it, as the output remained the same until I chatted after my friend joined, after which it outputted twice instead of once.

Oh I think the documentation might be a little bit out of date. It loops over every player so I’m assuming allows to specify which players see the message and which don’t, like a distance check.

1 Like

Thanks so much. Either the documentation is outdated a bit, or I just didn’t understand it well enough. Either way it does function the way you pointed out, so thank you again.

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