local function Run(ChatService)
local myChannel = ChatService:AddChannel("MyChannel")
-- Set the message that is shown when a user joins the channel
myChannel.WelcomeMessage = "Welcome to my channel!"
-- Causes players to automatically join the channel when they enter the game
myChannel.AutoJoin = true
Yep. Make a local script in StarterPlayerScripts. Name it whatever you want.
The local script will be used to overwrite the chat’s default settings. Whenever you want to overwrite a setting for Roblox’s chat, you can use this:
-- Require the ChatSettings module (wait for it to load)
local Chat = game:GetService("Chat")
local ClientChatModules = Chat:WaitForChild("ClientChatModules")
local ChatSettings = require(ClientChatModules:WaitForChild("ChatSettings"))
ChatSettings.ShowChannelsBar = true -- This is what you want
You can find a list of all the ChatSettings in this link, but showing the ChannelBar is all you need for what you’re asking for
Once you have the ChatChannels visible you can THEN add channels.
There’s no problem here. AddChannel is working as expected and so is your module. The problem is how you’re testing it – you never tried speaking in the new channel. Remember that if you do not have the ShowChannelsBar setting enabled you need to use /c [channelName] to start speaking in it.
EDIT: If your main concern is that your welcome message isn’t showing up, they can be a little finnicky with auto joining channels. It does normally appear when manually using JoinChannel though later into a session’s lifetime but I haven’t really dissected auto joins in a while.