How to tell if the player can talk?

How do I tell if the user is in the “You must wait X seconds before sending another message!” state.

RobloxStudioBeta_2018-12-31_18-53-36

Basically I’m using Player.Chatted to get a message, but the issue is that Player.Chatted still fires when the player is in that state.

Is there a way to check if the player is in that state?

If not, is there an alternative to Player.Chatted (Without having to create or fork a chat system).

There is a module called ChatFloodDetector at runtime inside Chat.ChatModules. Two variables control the detection (numberMessagesAllowed, decayTimePeriod).

Either you fork it and allow yourself to be able to read from it, or you use the given information and create your own tracking. Seems like there is no direct way to read from it.

5 Likes