Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Making System Chat Message?

Asked by 6 years ago

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

Log in to vote
1
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
6 years ago

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.

Ad
Log in to vote
-1
Answered by 6 years ago

I've actually made a tutorial on YouTube, here's the link: https://www.youtube.com/watch?v=07XWZ7CLXUc

0
That isn't much of a tutorial but a video spoon feeding code. xPolarium 1388 — 6y
0
It explains the steps and what each part does DesignerOfGames -7 — 6y

Answer this question