Make Chat Messages Easier with Easy Messages
Hey everyone, I have made a system that allows for an easier way to create multi colored Chat Messages using Roblox’s TextChatService.
Setup
-
Insert the Easy Messages Module into your game.
-
Put the module inside of game.ReplicatedStorage. (Doesn’t matter if you put in ServerStorage, ServerScriptService etc)
The module is now set up.
How to use?
The module comes with 2 functions.
- Create a Chat Message with just one color.
Insert a local script into Starter Player → StarterPlayerCharacter.
Here’s an example one…
local module = require(game.ReplicatedStorage.EasyMessages)
module.MakeSystemMessage("Hello there. This is a text.", Color3.new(0,1,0))
This will make a chat message that appears green in the chat, as shown below…
- Create a Chat message with multiple different colors.
Insert a local script into Starter Player → StarterPlayerCharacter.
Here’s an example one…
local module = require(game.ReplicatedStorage.EasyMessages)
module.MakeMultiColoredMessage("This is a multicolored text message. This is <Color3.new(255,0,1)>Red</color>. This is <Color3.new(0,0,255)>Blue</color>.")
This will make the message appear both Red and Blue.
Use <Color3.new()> to assign a color, instead of using the 1. text thing with RichText.
Why use this?
- EasyMessages allows for an easier way to use multiple colors in messages. Instead of having to use a Hex color Picker, you can easily use Color3.new.
- Customizable messages.
- Forget struggling with hexadecimal color codes or complex RichText
<font color>
tags. Easy Messages uses intuitive<Color3.new()>
tags directly within your message strings. This is significantly more readable and easier to write, especially for developers already familiar with Roblox’sColor3
object.
Conclusion
In conclusion, EasyMessages allows for an easier way to make system messages using the new TextChatService
Get: https://create.roblox.com/store/asset/78608678335648/EasyMessages