Hello Developers,
I am making at the moment a custom chat. Since I want the custom chat to work with admin made by other users, I want to know if there is a method to fire the player.Chatted
Event.
Thanks for reading!
Hello Developers,
I am making at the moment a custom chat. Since I want the custom chat to work with admin made by other users, I want to know if there is a method to fire the player.Chatted
Event.
Thanks for reading!
I do not know if there is a way to make a specific player chat. I know there is a way to send system messages, but maybe this article can be of assistance: Customizing In-Experience Text Chat | Documentation - Roblox Creator Hub
You could always hook into the remote events created by the chat system, such as, SayMessageRequest
which is fired by the client and contains the message and the recipient of the message before filtering. It can be found at runtime in ReplicatedStorage.DefaultChatSystemChatEvents
Using that remote event doesn’t trigger the player.Chatted
event. Although if you go into the Chat there’s a script called the “ChatServiceRunner” inside there is a module script called “ChatService”.
The :GetSpeaker(plrObj)
function will allow you to get the speaker
If you were to do something like: ChatService:GetSpeaker(player):SayMessage(msg, "All", nil)
then I believe it will trigger the player.Chatted
event.
It probably won’t work exactly the way I explained it above, you may need to edit the ChatServiceRunner script.