Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Making System Chat Message?

Hello,

How can you make a system chat message that can be seen to EVERY client in the game server using a global script? Can you only make system messages in a LocalScript? This is for a PlayerAdded event, just so you know.

m = {}  --"Inserts" message in line of code

game.Players.PlayerAdded:Connect(function(player)
   	for i,v in pairs(m) do
	m.Text = ("[System]: " ..player.name.. " has joined the game!")
	m.Color = BrickColor.new("Medium stone grey")
	m.Font = Enum.Font.SourceSansItalic
    m.FontSize = Enum.FontSize.Size18
        end
	end)

Please reply to the thread or send a DM to my Discord (RealMathGeek#6390). Help is very appreciated at this point!

--RealMathGeek

2 answers

✓ Accepted answer

You can't do this directly from a server script.

What you can do is use a server script to fire a remote event with FireAllClients(MessageData) and let each client create the message.

This discussion is preserved as it was. New answers, comments, and votes are closed.