How to remove indents in chat from RichText

Remove Indents In RichText ChatMakeSystemMessage


Introduction

image

You see this? It’s an issue I originally faced long back. It’s annoying and filthy. In this tutorial I will show you how to remove it!

Story

A couple days ago, I made this post:

Unfortunately, no answer was found. I tried finding any DevForum posts about this issue, but there wasn’t any fix for it.

Why does the issue occur you might ask me? It’s because the chat takes in the context text, or the original text and converts the height of it instead of the rendered text.

How To

First, you’re going to have to learn on how to activate RichText. I recommend using this community tutorial made by @DiamondRoPlayz

Cool, right? The indents are still there. Here’s what I want you to do:

image

Click on the Util folder inside MessageCreatorModules. From there, go to line 63 or function :GetMessageHeight if ever updated and you want to paste in this code above it and adjust it a little to match mines:

removeTags function made by this user:

Now it’s done! If you have any bugs message me, please.

7 Likes

yeah i forgot to update my topic about how to fix that :sob:

2 Likes