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:
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)
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:
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.
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.