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
end
return Run
The code is supposed to make a channel when you join and welcome you, but it doesn't seem to do it? I don't know if it's missing anything. I tried to search stuff in Google about it and it doesn't show relevant results.
It also says:
the channel object only needs to be used when calling members of that channel (such as its properties and functions).
but I can't really get it into me or understand it. The script is a module script and is parented in the ChatModule of the chat service.

2 comments
Not sure, but I think you don't need the "local" next to the function, and you have to put the "return Run" inside the function.
yeah local next to the function probably isnt needed but i heard putting it there makes the script run faster. im pretty sure "return run" is needed outside the function because it's a module script. then again though, as i mentioned it's a snip from the wiki. not my code