[SOLVED] How do I send a server message in the chat that all players can see?
Asked by
6 years ago Edited 6 years ago
I would like to send a message to the chat every time someone dies, but I don't know how to send the message.
2 | local Num = math.random( 1 , #DeathTexts) |
3 | game.StarterGui:SetCore( "ChatMakeSystemMessage" , { |
4 | Text = ( "[SERVER] " .. PlrName .. DeathTexts [ Num ] ); |
5 | Font = Enum.Font.ArialBold; |
6 | Color = Color 3. fromRGB( 255 , 0 , 0 ); |
I tried this but it only works from a local script, therefore only the player that died will see the message.
Solved: Just use FireAllClients() when the user dies, passing the user's name.