As a default, when joining a server in Roblox, a message always appears saying, "Chat '/?' or '/help' for a list of chat commands."
I want to remove this and replace it with my own custom welcome message.
I have managed to create my own new welcome message using: game.StarterGui:SetCore("ChatMakeSystemMessage", {Text = "Welcome message."})
However, the default message still remains. I was browsing through the default scripts that load when a player joins and found the relevant script.
In the script Chat>ChatModules>ChatCommandsTeller there is a line that creates this message.
I want to know if it is possible to overwrite this default script or somehow prevent it from running.
(Default script provided by Roblox)
-- // FileName: ChatCommandsTeller.lua
-- // Written by: Xsitsu
-- // Description: Module that provides information on default chat commands to players.
local Chat = game:GetService("Chat")
local ReplicatedModules = Chat:WaitForChild("ClientChatModules")
local ChatSettings = require(ReplicatedModules:WaitForChild("ChatSettings"))
local ChatConstants = require(ReplicatedModules:WaitForChild("ChatConstants"))
local ChatLocalization = nil
pcall(function() ChatLocalization = require(game:GetService("Chat").ClientChatModules.ChatLocalization) end)
if ChatLocalization == nil then ChatLocalization = {} end
if not ChatLocalization.FormatMessageToSend or not ChatLocalization.LocalizeFormattedMessage then
function ChatLocalization:FormatMessageToSend(key,default) return default end
end
local function Run(ChatService)
local function ShowJoinAndLeaveCommands()
-- Irrelevant function
end
local function ProcessCommandsFunction(fromSpeaker, message, channel)
-- Irrelevant function
end
ChatService:RegisterProcessCommandsFunction("chat_commands_inquiry", ProcessCommandsFunction, ChatConstants.StandardPriority)
if ChatSettings.GeneralChannelName then
local allChannel = ChatService:GetChannel(ChatSettings.GeneralChannelName)
if (allChannel) then
allChannel.WelcomeMessage = ChatLocalization:FormatMessageToSend("GameChat_ChatCommandsTeller_AllChannelWelcomeMessage","Chat '/?' or '/help' for a list of chat commands.")
end
end
end
return Run
