I need a mute command, I know how to do everything but muting the player, any ideas? I just want them to not be able to speak in any chats at all, and then I also need to unmute them later on.
1 Like
Using
There is a method for muting players as well as unmuting them.
there’s several topics that have covered this
If you are not sure how ChatService works, its a module inserted into the game.
local ChatService = require(
game:GetService("ServerScriptService")
:WaitForChild("ChatServiceRunner")
:WaitForChild("ChatService")
)
To mute the Chat u would get the All chat channel then mute all the speakers in it.
Also ChatService is on the server
-- pseudo code
on MuteCommand do
local Channel = ChatService:GetChannel("All") -- We get the All channel.
for _, speakerName in ipairs(Channel:GetSpeakerList…
I got it now. Yes, it has to do with channels. While the replies here could still be more helpful by being specific about what to do, for future readers I will explain how this works.
Roblox’s chat system is designed to be modifiable without having to fork it. Any changes you want to make are done by simply requiring the ChatService ModuleScript here: Changes can be done in many ways with the default Roblox chat, see this thread for more info. In our case, we only want this module:
[image]
On…
2 Likes
Thanks, and any idea how to unmute them?
17frames
(Frames)
October 28, 2021, 12:40am
#6
He obviously does not mean that.
I actually do in fact mean that.
2 Likes