I am trying to send a message to the chat. The following code is in a LocalScript in StarterGui:
function game.Workspace.RemoteFunction.OnClientInvoke(killer, player)
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = (killer.Name .. " killed " .. player.Name);
Color = killer.TeamColor;
})
end
However, whenever it runs I get the following error:
SetCore: ChatMakeSystemMessage has not been registered by the CoreScripts
I did exactly what the wiki page said, but obviously it's not working. What am I doing wrong?

3 comments
Are you seeing this error in Studio Test mode, Studio Server mode, or in a live server?
Hi there, surprisingly i had the same problem and it took me a whole darn 20 minutes to figure out what the heck went wrong. I feel quite silly now, to anyone still having this problem..a simple wait() at the beginning will fix that error no problem.