Today I was making a custom command on Kohl's Admin to make a system message in the chat with given text. I setup the code in the custom commands module, then I setup the RemoteEvent needed to carry out this action. I put this code in a LocalScript in StarterPlayerScripts. The weird thing is, the print function works, but the SetCore doesn't. This has been happening to me for a while now, and it's getting kind of annoying.
Anyways, here's the code:
local msm = game.ReplicatedStorage.MakeSystemMessage msm.OnClientEvent:Connect(function(player,message) print("Event fired!") -- this fires game.StarterGui:SetCore("ChatMakeSystemMessage", { -- this doesn't Text = "[SYSTEM]",player.Name..":",message; Font = Enum.Font.ArialBold; Color = Color3.fromRGB(255,0,0) }) end)