Event for when a chat notification is prompted without forking?

Is there a roblox event you can tap into which fires every time a chat notification is promoted?

image

I’m assuming this can be achieved using SetCore although I can’t seem to get it working.

My current attempt:

local signal = Instance.new("BindableEvent")
signal.Parent = script

game:GetService("StarterGui"):SetCore("CoreGuiChatConnections", {["ChatWindow"] = {["MessagesChanged"] = signal}})

signal.Event:Connect(function()
	print("Chatted!")
end)

Is it possible to use Player.Chatted and test if the chat window is closed?

It’s all rooted in the CoreScripts. If you need a reference or some further resources to help you on trying to resolve this, I have the lines responsible for handling the unread chats notification bubble from the Topbar CoreScript:

You can trace things around. Took me a while of doing that, found that most things are internal. There might be a way to expose them directly on the Lua Chat System but I realise you don’t want forking so that’s out of the question.

1 Like

This is a potential solution with the correct verification, however notifications don’t directly correspond with players chatting (e.g. notifications may not appear for filtered messages, the player themself, other specific criteria, etc) therefore isn’t ideal.

2 Likes