i hate this please help i hate this
1 Like
Require the ChatService
module which is located inside the ChatServiceRunner
created at the start of the game (use WaitForChild)
ChatChannels have a MuteSpeaker
method and similarly an UnmuteSpeaker
method.
(“All” is the default channel)
This example script mutes everyone.
local ChatServiceModule = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
--Mute everyone who joins the game
ChatServiceModule.SpeakerAdded:Connect(function(SpeakerName)
ChatServiceModule:GetChannel("All"):MuteSpeaker(SpeakerName)
end)
If you are using the new TextChatService
I can provide a solution to that upon request.
1 Like