I am wondering if anyone would happen to know how to force players into chat channels after making them join. It was easy enough to create both an “Alive” and “Dead” channel for my game and put players into it based on certain events; however, the only way to actually speak in the channel is after typing “/c .” Is there any feasible way to force players into their channels? And yes I have searched through every tutorial I could before asking this question.
I appreciate the fast response but nothing on there forces the player into a channel. I can only edit the channel properties with those commands. Unless I missed something.
I’m pretty sure the speaker can’t so easily “leave” the channel. I’ve already tried speaker:LeaveChannel(“All”), which would work regardless of the “Leavable” property yet it corrupted the entire chat. I believe it has to do with something deep in the chat modules and I might have to fork the chat?
Am I supposed to mute the speaker from the “All” channel?
I got errors from the chat modules.
Here is a simplified form of what I have.
local function SwitchChannel(player)
local channel = ChatService:GetChannel("All")
local speaker = ChatService:GetSpeaker(player.Name)
channel:MuteSpeaker(speaker)
end
remote.OnServerEvent:Connect(SwitchChannel)