SWAGTEXT - Custom RichText Module

defaultio’s richtext module is not user-friendly and i’m a little baby about it so i made my own

Replay2024-03-1500-55-48-ezgif.com-speed
it’s not the absolute best, but it’s a good balance between complexity and ease-of-use
(edit: that input animation is customizable)

this is my first module so don’t expect anything over the top, i was just annoyed ab coding this into every one of my games
it also comes with a built in manual so you can get started easily

i haven’t done any over-the-top testing so it may not work with multiple lines, but who knows

^^ there you go

33 Likes

Belongs in #resources:community-resources btw. Also cool resource. I do however do not really like the appear animation.

1 Like

looks cool!

also that GIF is very small

1 Like

appear animation is customizable, also sorry next time i’ll put it there

There is no need for a next time. Just click the pencil icon next to the title and set the category to #resources:community-resources.

There is not a module included in this model, Assuming this was done by accident. :confused:

1 Like

Do you think you could fix this by including the module? Thank You

1 Like

fellas i ⠀apologize for the mistake, module is in here, go nuts

2 Likes

hola, i’m seeking an alternative to defaultio’s rich text module because the problem i have is that it doesn’t scale correctly. for example, when the text plays out, and you resize the window, the text/frames do not scale to the current window size.

and since i’m guessing it’s been discontinued (hasn’t been updated in years), i’m using your module, but however it also doesn’t scale to frame size. are you able to add some sort of support for it in the next update whenever you are able to?

EDIT:
nevermind i think i was able to fix it on my own mbmb ಥ_ಥ
BUT ANYWAYS APPRECIATE THE MODULE! :pray: keep up the good work

How were you able to fix it? Im having the same issue :frog:

uhh i ended up actually just forking the rich text module because it had features, which was the multiplie lines automatically calculating in the frame. maybe in the feature i might try making my own text module but just modify it

2 Likes

can you please share the code because I cannot figure this out

1 Like

please do share the code im curious to see how it works lmao

1 Like

Bump + I really like this module, I can tell you put effort into this, I think this is probably one of the best text modules in Roblox so far just cuz of its ease to use lol.

Also it has a lot of features and I really like the chroma feature.

HI,

Where did you put the stuff and then get it to work by doing what?

I did this so far…

Thanks

Hello

You have to put SwagTextModule in ReplicatedStorage, and the GUI is just the manual/documentation on how you format your text. You can put the gui back in the module when done with it.

The way it works is that it writes text over a Frame/empty TextLabel, simply make one and insert a LocalScript inside it. You can use this example script as a test:

local SwagText = require(game.ReplicatedStorage:WaitForChild("SwagTextModule")) 
-- Refers to ModuleScript
local use = "normal, <red>red</red>, <blue>blue</blue>, <color=#00ff00>green</color>, <bold>bold</bold>, <italic>italic</italic>, <red><bold><shake>impact</shake></red></bold>, <warp><rainbow>chroma</rainbow></warp>, <color=#aaaaaa><pause=0.5>slow</pause></color>" 
-- An example string. The <tags> are there so you can identify which text needs decoration.
SwagText.AnimateText(use, script.Parent.Frame, 0.04, Enum.Font.Arial, "fade diverge", 1, nil, nil, nil, nil)
-- AnimateText is the function to write text. The syntax goes in this order [string, which frame, delay time, font, mode, word mode, text size, ahori, avert, extra, verbose]
wait(3)
SwagText.ClearText(script.Parent.Frame)
-- ClearText is the function to remove all text created by SwagText

Hope this helps:)