Like this
To send a {System}
message you could use:
game.StarterGui:SetCore(
"ChatMakeSystemMessage", {
Text = "{System} Hello World",
Color = Color3.fromRGB( 255,0,0 ),
Font = Enum.Font.Arial,
FontSize = Enum.FontSize.Size24
}
)
Instead of "{System}"
you could change it to `“[Server]”, as well as changing the Color3.
3 Likes
am ı have to put this script in to the starter gui?
No, you could put this inside ServerScriptStorage
.
- If you make this a server-sided script then everyone will see the message.
- If you make this a local script only a specific person would see it.
I suggest using events to fire these messages at specific times.
ı will make it server sided script
you must fire a remote telling the client to run it on their own, not from the server
How so? it isnt works smoothly?
1 Like
Server
local remote = Instance.new("RemoteEvent", game.ReplicatedStorage)
remote.Name = "ServerMessage"
while wait(1) do
remote:FireAllClients("[System] Test", Color3.fromRGB(147, 0, 0), Enum.Font.Arial, Enum.FontSize.Size24)
end
Localscript in StarterPlayer → StarterPlayerScripts
local remote = game.ReplicatedStorage:WaitForChild("ServerMessage")
remote.OnClientEvent:Connect(function(text, color, font, fontsize)
game.StarterGui:SetCore(
"ChatMakeSystemMessage", {
Text = text,
Color = color,
Font = font,
FontSize = fontsize
}
)
end)
5 Likes
Where ı will write the message in that?
Thanks for the information ı really need this before,