Hey there, attempting to send System Messages to the all Players on the game, for in-game tips.
I’m attempting to head in the direction of the purple text
{System}: Blah Blah Blah
No custom chat is being used!
What I’ve tried so far was getting the All Chat Channel, then running SendSystemMessage
which almost worked, but I can’t color it!
You can use the SetCore
function provided by the StarterGui Service:
game.StarterGui:SetCore("ChatMakeSystemMessage",
{
Text = "[System] This is a test that the server has sent this message",
Color = Color3.fromRGB(150, 0, 0),
Font = Enum.Font.Arial,
FontSize = Enum.FontSize.Size24
}
)
1 Like
Set Core, can only be ran from Local Scripts, and I’m trying to keep it off Client. 
I believe the only way to really do it is by using RemoteEvents
, sending the server message’s properties to the client
It used to be able to fire on the server, but it doesn’t look like that’s the case anymore
Yeah, I was just emptying the Dish Washer and thought of that… LOL Sorry wasn’t thinking correctly. 
Ah you’re fine
But yeah, you could do something relevant along those lines maybe?
Example Code:
--Server-Side
local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
local Text
local Color = Color3.fromRGB(150, 0, 0)
local Font = Enum.Font.Arial,
local FontSize = Enum.FontSize.Size24
Text = "[System] This is a test that the server has sent this message"
Event:FireAllClients(Text, Color, Font, FontSize)
--Local-Side
local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
Event.OnClientEvent:Connect(function(TextToSay, ChatColor, FontType, ChatSize)
game.StarterGui:SetCore("ChatMakeSystemMessage"),
{
Text = TextToSay,
Color = ChatColor,
Font = FontType,
Size = ChatSize
}
end)
2 Likes