Encladeus
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 3839 |
|
|
| 27 Mar 2016 09:51 AM |
Is it possible to intercept player chat before it is processed by the game to become visible chat using:
game.Players.PlayerAdded:connect(function(ShutUp) ShutUp.Chatted:connect(function(rubbish) rubbish=nil end) end) |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2016 09:52 AM |
lmao @ the script
anyway, i think you would have to use a custom chat gui
all murder games and such that mute dead players have custom chats |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Mar 2016 10:51 AM |
It is possible to stop the player from chatting, but there is no way for you to currently intercept a message and delete it without it going through. In order to stop a player from chatting, you would need to send a RemoteEvent from the server to the player's client and use ChatBarDisabled with SetCore to mute them.
SetCore info (+how to use ChatBarDisabled): http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore |
|
|
| Report Abuse |
|
|
Casualism
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1851 |
|
|
| 27 Mar 2016 11:31 AM |
No, just disable the core gui for that player
|
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Mar 2016 03:36 PM |
| @Casualism That would also require a RemoteEvent in the same way; plus, the OP said they wanted to mute the player. Using SetCore effectively does that. In no way is just disabling the core GUI better than using SetCore to remove the chat bar. There are a multitude of reasons for not completely removing the chat. |
|
|
| Report Abuse |
|
|
Casualism
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1851 |
|
|
| 27 Mar 2016 04:39 PM |
Yes, I agree w/ the RE. Though...
Setting the Chat Core GUI cancels the user ability to chat.
|
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Mar 2016 08:14 PM |
@Casualism
1. did you even read what i wrote 2. do you not know what setcore is, what it does, and what it can be used for 3. did you even read what i wrote [2] |
|
|
| Report Abuse |
|
|
|
| 27 Mar 2016 08:18 PM |
There is a way, but not in the way you're thinking.
You can use UserInputService to log what he's writing and if it's something that you don't think should belong, find a way to stop him from pressing enter. Maybe remove his Gui's. |
|
|
| Report Abuse |
|
|