How can I Remove the Brackets around your Name when you type something in Chat

I’ve seen a game where when you type something in chat it says “Player: message” instead of “[Player]: message”

I tried searching for how to do that but I couldn’t find anything, I also tried looking in the chat scripts for a way to do that but couldn’t find.

Here is how it looks like:
chat2
Here is how normal looks like:
chat

Does anyone know how I can make it “oopacity: chat” instead of “[oopacity]: chat”

You should just create your own chat system and disable Roblox’s Lua chat system instead of forking the Roblox Lua chat system because that way you know exactly how it works and you can add your own stuff without being scared that it would break Roblox’s Lua chat system.

You can disable Roblox’s Lua chat system by selecting the Chat service and unchecking the “LoadDefaultChat” box like this:

LoadDefaultChat


by chat settings I mean those but I can’t find right one for removing the [ and ]

Like I said before your best solution is to probably just create your own chat system, look at my previous post for more details about doing this.

1 Like

I’m not that good at scripting I don’t how to make a custom chat system

I think the OP wants to modify the chat scripts instead of making a new one. This is pretty understable if the OP want to fork it and is assured that she knows she will not receive updates from the chat. Anyways, I’ll try to find the code for it. This message will be edited once I found it. Refer to @colbert2677’s post. (Thank you @colbert2677 :heavy_heart_exclamation:)

1 Like

Look at this tutorial by Roblox to know how to filter text in your new chat system they also go indepth about it: Text Filtering | Documentation - Roblox Creator Hub

1 Like

Chat lines are stitched together in MessageCreatorModules which determine how the overall message is displayed, including the speaker’s name and the message they’re sending. In order to remove the brackets around the name, you need to fork the DefaultChatMessage module and remove it there.

First of all, when forking systems, do not fork parts that you aren’t changing: always try to fork as limited pieces of a system as possible. InsertDefaultModules flags allow you to get all other pieces of a system without a complete fork, so you just need these components to work:

image

InsertDefaultModules is a BoolValue instance with its value true. DefaultChatMessage is the module you need to modify to get rid of brackets. Forking anything else is not needed and not recommended either because your game will no longer pull new chat system code automatically.

In any case: once your setup looks like this, open DefaultChatMessage and go to line 31. You will find a line of code that looks like this:

local formatUseName = string.format("[%s]:", speakerName)

Remove the brackets. If you have collaborative editing on, commit changes. That’s all there is to it: you’re done after that. Just in case it’s not clear: line 31 should look like this after you’ve made the changes:

local formatUseName = string.format("%s:", speakerName)

The % is required for string formatting, do not get rid of it.

5 Likes

Do I have to get rid of every other thing inside of MessageCreatorModules

Yes, you can empty the MessageCreatorModules folder of everything except DefaultChatMessage and InsertDefaultModules. The InsertDefaultModules item tells Roblox when servers of your game start to get the pieces of the chat system that are missing. You don’t have to but I’d recommend it.

1 Like