You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to prevent players from talking.
What is the issue? Include screenshots / videos if possible!
I have a remote event to mute a player from the server by disabling their chat CoreGui but exploiters can just as easily bring it back or stop the remote from firing. To counter that, I added a muted table so that when the mute remote is fired they are added into the table, and it kicks them if they try to chat while in the muted table. They can still say one thing though, and that one thing could quite literally be anything. I want to prevent them from saying that one thing on the server.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I saw something with the ChatService chat channel thing that could mute players from the server, although the given code errored and the API reference was undescriptive about it.
I probably should’ve gone into more detail, Roblox told me to keep the post short. This is my first post though.
I have something in place which systematically mutes players temporarily. With non humans, false positives come. I don’t want to permanently ban them without direct proof or a warning immediately. By the way, I never said I was specifically muting exploiters. When I do manually mute people, I do it to people saying questionable stuff in chat. I don’t automatically figure out they’re a hacker and ban them instead.
Also, your post is a little condescending not gonna lie.
Well, im not certain on if this method is 100% effective but either way it’s worth a shot ig…
game.Players.PlayerAdded:Connect(function(plr)
local MutedUsers = (ID1, ID2, ID3)
if plr.UserId == MutedUsers then
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
end
end)
Well, changing the CoreGui can only be done on the client, and that just brings me back to my earlier problem, but thanks for trying to help. I appreciate it.
If you’re saying to do that on the server, you can’t use SetCoreGuiEnabled on the server.
And as for muting people? @CookieCutterPerson you should try a custom chat system with a server check for muted players. You could also try modifying the existing chat system for this functionality but that’d be much harder in all reality.
I’ve found a post on how to change the function once a message is sent to not send it to other clients. I’ll still mark your post as a solution though as it led me in the right path.
Did you even read my post? I literally don’t want to reply to this.
I know that… which is why I kick them if they chat when they’re classified as muted. Furthermore, how is that related to what you quoted? You’re not even proving me wrong, you’re just stating some random thing that I already know.
Again, you’re saying nothing related to what you’re quoting me for. You don’t state how my idea is crazy in any way, and you don’t even try to prove me wrong. Please elaborate.