Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is the service that filter a player's message before chatting? [closed]

Asked by 9 years ago

I'm making a chat GUI and I need to filter the message a user enters. I remember that there is a service with a function that does this, but I completely forgot what service that is.

Edit 2: If you are going to down vote this, do you mind explaining why?

0
Do you mean the Chatted Event? woodengop 1134 — 9y
1
Are you sure there's a service that does that? I'm looking at the wiki and I'm not finding anything. yumtaste 476 — 9y
1
@yum, I'm looking it up, and I don't know what service he's talking about, maybe he's talking about the Chatted event. woodengop 1134 — 9y
0
I'm not talking about the Chatted event, there is a service that does that. The in-game roblox chat system uses that service to filter chats.. Vlatkovski 320 — 9y
View all comments (4 more)
1
filter? That can't be touched. woodengop 1134 — 9y
0
@Europe What do you mean? I didn't mention anything about the Touched event. Vlatkovski 320 — 9y
0
The Filter system in the ROBLOX Chat is locked away from any users reach. woodengop 1134 — 9y
0
I knew something was too good to be true. @Vlatkovski, I'll make you a function for your chat GUI that censors players' chat messages. yumtaste 476 — 9y

Locked by yumtaste, NinjoOnline, and Redbullusa

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
3
Answered by 9 years ago

The ChatService has FilterStringForPlayerAsync which does what you want.

0
THANK YOU. Vlatkovski 320 — 9y
Ad
Log in to vote
1
Answered by
yumtaste 476 Moderation Voter
9 years ago

Chat filtering is automatic. However, the difference between utilizing it with a custom-made chat GUI and leaving the default ROBLOX chat GUI is the default chat will automatically censor unacceptable words with hashtags (#'s). However, if you make a custom chat GUI, I believe that if there is a swear word, the chat label will be empty instead of with the profane word censored. I can test that if you want, but you should be able to. Unless you want to make custom messages from the server viewed in chat (or just hate the look of the new chat), I strongly recommend you keep the default ROBLOX chat system.

0
Let meh Put up a point. woodengop 1134 — 9y
0
Wow! I didn't know about Roblox auto-filtering GUI TextLabels (I just tested it). It doesn't make the textlabel empty, it just doesn't update the text value. chess123mate 5873 — 9y