How Easy Is This To Do(Roblox Chat Design)

I want to make a game which when you chat each letter is changed into a certain symbol based on what it is.

For example a would become AVariation or AVariation2

How hard would this be to do and how would I go about doing it?

2 Likes

Here’s a headstart.

1 Like

Use RegisterFilterMessageFunction to change a player’s chat message.
Example code: (Paste this into a ModuleScript within the ChatModules folder.)

local functionId = "editText"

local function doFilter(speaker, messageObject, channelName)

    if messageObject.Message == "ez" then
        messageObject.Message = "gg" 
    end
end
 
local function runChatModule(ChatService)
	ChatService:RegisterFilterMessageFunction(functionId, doFilter)
end
 
return runChatModule

This changes a player’s message from “ez” to “gg”.

DevHub link: Lua Chat System — Server API — ChatService
Another post for more info: How Would I Edit a Players Message?

6 Likes

Does your code change “ez” to “gg”? I’m totally using it!

1 Like

Yep, here’s a video of this script changing the text: change ez to gg

2 Likes

How could I do this for individual letters in a message but changes them to symbols I designed and uploaded as decals?

1 Like

Sorry but at first I thought you could just switch the message into a rbxassetid but you can’t so you should try to make your own custom chat box that would allow you to use decals as messages.
AlvinBlox made a pretty good video on how to do so that should help you on your goal:

Another post related to custom chat boxes: