ChatMakeSystemMessage not sending any message

My code in localscript:

local ev = game:GetService("ReplicatedStorage").MainEvents:WaitForChild("OnPlayerKilled")
local ft = require(game:GetService("ReplicatedStorage").MainModules.MainFunctions)


ft.message("Hola mundo", Color3.fromRGB(38, 23, 255), 40)

ev.OnClientEvent:Connect(function(Pname, Kname)
	
ft.message("Hola mundo", Color3.fromRGB(38, 23, 255), 40)
	
end)

In my module script:

local a = {}

function a.message(t,c,z)
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
			Text = t,
			Color = c,
			Font = Enum.Font.SourceSansBold,
			TextSize = z,
		})
end

return a

I tried the code in a game I’m working on recently but it doesn’t work, however I tried it in a game I’ve been testing for a long time and it works.

1 Like

You can only create chat messages on the client side

1 Like

I have done so and it does not work as you can see in the localscript

1 Like

Maybe you have to write the lines of the module script inside the local script

1 Like

I did it and it didn’t work. I also tried with TextChatService but it didn’t work.

1 Like

How new is the game? Newer games use TextChatService which uses DisplaySystemMessage instead.

1 Like

I found a solution, in the TextChatService in the properties put the ChatVersion in LegacyChatService:

image

1 Like

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