So, I'm making an admin script, and I'm trying to mute someone. I can't seem to do it, but here's a command for example:
Commands.speed = function(Sender,Arguments) local Argument = PartialMatch(Arguments[1]); if not Argument then return false end; Argument.Character.Humanoid.WalkSpeed = Arguments[2] end
How could I mute someone without destroying the script, because I still need it for the unmute command?
To mute someone, you need to use a LocalScript.
game.StarterGui:SetCore("ChatBarEnabled",false)
View post for muting someone via server script
Okay, fine. Here's the code you want.
local ChatService = require(game.ServerScriptService.ChatServiceRunner.ChatService) local Channel = ChatService:GetChannel("ALL") Channel:MuteSpeaker(string.lower(Argument.Name)) end