System Chat Event

I’m looking to make an event occur every time a system chat is sent, how would I go about this? Is there any specific listener to use?

local Chat = game:GetService ("Chat")
Chat:RegisterChatCallback ("OnMessageDoneFiltering", function (messageData)
  if messageData.FromSpeaker == "System" then -- Check if the message is from the system
    print (messageData.Message, messageData.FromSpeaker) -- Print the message content and sender
  end
end)

I’m talking about a client-side listener.

You might need to create a remote event or function then.

Okay, thank you, I’ll check it out!