#I need help on my Chatbox gui
1 messages · Page 1 of 1 (latest)
are you saying you want it to not censor
or do you want it to censor
roblox doesnt tag things in studio
if thats what you mean
You must filter messages yourself when working with RemoteEvents. However, with Roblox's latest communication guidelines, you're heavily recommended to use TextChatService to implement custom chat systems. TextChatService handles message filtration and replication for you
just so you know, removing a chat filter could get you banned
Do I just show u it?
very easy and possible
And as @sharp peak said, filtration will not work in Roblox Studio
Show me what?
I didn’t say to remove the chat filter
I want my Chatbox to have the Roblox chat filter
as @unkempt grotto said use textchatservice
And also my friend did it
You should be using TextChatService to implement your custom chat
in a client sided script
The problem is I suck at scripting
Do I just show you the Chatbox gui?
Okay first I will show u the gui
DMs
Message filtration has nothing to do with the GUI
It's your code that matters
in a server script
put this code
game.ReplicatedStorage.Assets.Events["ClientToServer(ServerMsg)"].OnServerEvent:Connect(function(plr, text) local textFiltered = game.TextService:FilterStringAsync(text,plr.UserId) game.ReplicatedStorage.Assets.Events.Dialogue:FireAllClients(plr.Name, textFiltered:GetNonChatStringForBroadcastAsync(), 3, 0.05) return textFiltered:GetNonChatStringForBroadcastAsync() end)lua
replace the event name and directory with one of your choosing
as long as you learn from this i dont need credit
There's no need to return anything here. You can also reduce the frequency of overzealous filtration results by filtering with GetNonChatStringForUserAsync
this was my first time even touching the textservice so lol
** You are now Level 4! **
@pallid owl, as you can see, both functions are not meant to be used for chat systems. You should port to TextChatService
i also connected it to a client script because it was for a client-to-server messaging system
it was for an admin panel lol
thx for the tips though!!
Thank you guys
dw abt it!
Am sending all of this to my scripter friend bc he created the Chatbox
Is this for server announcements?
Chatbox gui
Any user is allowed to chat using this GUI?
Yeah
I gave some scripts to make that but he tried 50 times didn’t work
Oh wait
Yes that works
But the chat filter no
?
TextChatService automatically filters messages. Messages will not filter while in Roblox Studio
Thank you!
Manual filtration attempts should be made with pcall, as the filtration relies on an HTTP request
@pallid owl
Oh ok
Hmm I think that’s enough for now on if that stuff didn’t work I will dm you guys!
And also thank you guys
Stick to this thread; there's no need to DM us
My DMs are closed
Hey can y'all teach me how to script
@unkempt grotto Ziifix
Word