What is the best way to send send a server message through TextChannel?

I’ve tried to find multiple examples, for this but they are all outdated.
Thanks.

Use RemoteEvents to fire to all clients on the Server:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

ReplicatedStorage.Remotes.ServerMessage:FireAllClients(message)

Then on the Client

local ReplicatedStorage = game:GetService("ReplicatedStorage")

ReplicatedStorage.Remotes.ServerMessage.OnClientEvent:Connect(function(message)
    TextChannel:DisplaySystemMessage(message)
end)

Alright, thank you. This definitely helps.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.