Text UI Animation and Transition Module v1.0

Hello,
I am a 13 year old aspiring roblox programmer. I was looking into a lot into giving the UI on the platform a bit more distinction. These text label transitions may seem a bit basic. I promise this module will become a lot more than what it is now I only worked on this module for… about an hour atm. This module incorporates roblox’s new rich text beta feature.

This module consists of only a handful of animations and transitions atm(basic typewriter, glitch text, and color transition) the glitch text involves this new beta feature.

Why is this module useful?

This module can be useful to beginners, or to give your game a bit more pop to it… Using this module is just as easy as taking candy from a baby!

REQUIREMENTS

  • Enable Rich Text beta feauture in studio!

  • Have a basic understanding of LUA!

Now that you are ready! All you gotta get is the module

https://www.roblox.com/library/5524343684/Text-Animation-v1-0

The first effect is typewriter which is extremely basic, but seems to be looked upon…

here are some examples of how to call these effects:

local rs = game:GetService("ReplicatedStorage")

local module = require(rs:WaitForChild("Text Animation"))

--//color infinite repeats color effect infinite times

module:colorinf(script.Parent, "Hello world!", 0,0.1) --//textlabel, text, background transparency, delay in terms of wait()

--//typewriter duhh

module:typewriter(script.Parent, "Hello world!", 5, false, 0.01) --//label --//text //amount of times repeated int //infinite true or false //speed

--//glitch

module:glitch(script.Parent, "Hello world!", 0) --//label //text //background transparency

--// color single

module:color(script.Parent, "Hello world!", 0, 0.1) --//label //text //background transparency //speed

NEXT VERSION WILL COME WITH AN EXPLANATION VIDEO

11 Likes

Doesn’t looks good.
I mean, a lot of while loops, without breaks, is going to take a lot of memory for loops inside while loops, well.

5 Likes

oh yes im so sorry my bad this was very rushed as i said i made it in less than an hour I will make sure to break my loops in the next version sorry for inconvenience

1 Like

You shouldn’t be putting rushed, inefficient, or buggy modules up for a resource that everyone is supposed to use. If you’re making something in less than an hour, the code should at least show that you know what you’re doing and that it’s efficient. Also, you should put the source code in a pastebin so that it’s easier for people to see

5 Likes

Nice module. Can you post the source code up so people who is not on a PC can see it?

2 Likes

Not to be rude but this ‘Glitch’ effect’s code looks quite horrible…


function textmodule:glitch(obj, text, trans)
	local glitch = {}
	setmetatable(glitch,textmodule)
		obj.BackgroundTransparency = trans
	
	spawn(function()
		while wait() do
			obj.Text = "<b>"..text.."</b>"
			wait(0.01)
			obj.Text = "<i>"..text.."</i>"
			wait()
			obj.Text = "<b><i>"..text.."</i></b>"
			wait()
			obj.Text = "<b><i><s>"..text.."</s></i></b>"
			wait()
			obj.Text = "<b><i><s><u>"..text.."</u></s></i></b>"
			wait()
			obj.Text = "<s><u>"..text.."</u></s>"
			wait()
			obj.Text = "<u>"..text.."</u>"
		end
	end)
		
	return glitch
end

All of the waits are crazy. Next time you are going to create a Community Resource, don’t rush yourself! Take all the time you need.

1 Like

I realized that… I will just stick to doing commissions lol

I’d suggest making a loop with all the fonts from Rich Text and using that and making it in a random pattern.

Oh thank you, but I will discontinue this as it was embarrassing bc of how rushed this is :frowning:

1 Like

Hey it was really nice of you to put this out here. I hope you’re not discouraged and come back with code that isn’t rushed. We appreciate the thought but take some time and make sure you’re proud of the results!

7 Likes

lmfao why are you using stolen acc to post on dev forums

2 Likes

This is my account. Just never been into development and mainly kept this as an alternative account to stop being a PG target, but with 2FA there’s no need to worry!

4 Likes