How would I create a "server announcement"

I’m trying to figure out how to create a “server announcement” type of message in the chat. I’ve tried following YouTube videos and other DevForum posts but none work.

LocalScript:

game.ReplicatedStorage.SendMsg.OnClientEvent:Connect(function(config)
	print(config)
	game.StarterGui:SetCore( 
		"ChatMakeSystemMessage",  { 
			Text = "["..config.Name.."]: "..config.Text, 
			Color = config.Color,
			Font = config.Font,
			FontSize = config.FontSize
		}
	)
	print("i did it")
end)

Output:
image

1 Like

I dont see why it shouldnt work, matches up with the apis and other references ive just looked at, did you test it in game or just as a studio test?

1 Like

If you are using TextChatService, ChatMakeSystemMessage will not work, so you would need to use the Legacy Chat, if you want to use it for TextChatService. you need to have All Clients Detect the Change from a RemoteEvent, and fire :DisplaySystemMessage() within the Desired TextChannel

Yeah, I was thinking the same thing. I have no ideas as to why this isn’t working.

That’s exactly what I’m doing, I don’t know why it isn’t working.

2 Likes