TextTooner - Easy Cartoon Headers! [Open Source]

TextTooner - Easy Cartoon Header Texts! :tada:

Hello! I did another UI thing that I want to share.
This is a small and simple modular function that turns any TextLabel or TextButton into a “Cartoon” style, which looks pretty cool as a header in UI panels for cartoon looking games.

:warning: Important:

  • I haven’t tested this on every single scenario so it can end up looking wrong in certain situations.
  • Performance will be affected if used too much, as it does create more instances when you use it, so I’d recommend using on headers only, though I’d guess the performance impact is not THAT big. Just keep it in mind.
  • Only works with the FredokaOne font, I haven’t tested all the others to confirm though.

You might want to ask “Can’t I just do this on Photoshop?”, and the answer is YES.
So why would you use this? Well, you won’t need to use another software to do it, it’s easy to use, and it’s customizable in Runtime.

If you want you can just use Photoshop to achieve this, though it won’t work for texts that update in Runtime.

:arrow_down: Get it here:

:film_projector: Preview

Here’s a small video I did of it being used with the example script I let inside the model.

:thinking: How to use it:

This is a modular function, so to use it is quite simple.
You just need to require it in a variable and call it when needed like if you were calling a function.

local TextTooner = require(path.to.module) --[[ Store the function ]]
local NormalLabel = a.TextLabel.or.TextButton --[[ A non Toon label ]]

local SigmaTextLabel = TextTooner(NormalLabel) --[[ Call it like a function when needed ]]
--[[ THE CODE ABOVE IS AN EXAMPLE, IT WON'T WORK IF PASTED AS IS. ]]

It takes 2 parameters when called:

  • [1]: TextLabel or TextButton that will be converted;
  • [2]: An optional boolean that defines if the converted label will NOT have connections for when the text and text color change, by default it comes with connections enabled (which means it will update the effect whenever the Label is modified).

I let an example LocalScript inside the model for you to test it yourself, just drop it under StarterPlayerScripts and Enable it. Also make sure to put the TextTooner module inside ReplicatedStorage or change the path inside the example LocalScript.

:scroll: License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

:+1: Thanks for reading!

Please leave a like and follow me on Roblox to support me, I’d really appreciate that! :sparkling_heart:

12 Likes

good work bro! this is so good for simulator games
if one day i do a simulator game, i will add this module for sure!

2 Likes

This is a good module,

image

I have a suggestion: Can you make it support any font?

It’s way easier just editing the text ourselves…