Color changing textbox

Hello, I was bored so I made this:
Color changing textbox

It’s a color changing textbox(duh) which I thought was pretty cool. I made a module if you guys wanna use it

Setup:

  1. Insert the module into ReplicatedStorage (Module: Color changing text module)
  2. Create a gui with a localscript using the module

Local script example code:

local mod = require(game.ReplicatedStorage.ColoredTextMod)
local label = script.Parent.TestLabel
local prevText = ""

script.Parent.TestLabel.Focused:Connect(function()
	label.Text = prevText
end)

script.Parent.TestLabel.FocusLost:Connect(function()
	prevText = label.Text
	mod.Colorize(prevText,label)
end)

mod.AddColorToText("banana",Color3.fromRGB(255,255,50))
mod.AddColorToText("strawberry",Color3.fromRGB(255,0,75))
mod.AddColorToText("lime",Color3.fromRGB(0,255,100))

The explorer should look similar to this:
Explorer

Tell me if this works or if there’s any bugs :))

6 Likes

now, this is a fun little module! Nice work, pretty cool!

2 Likes

So simple, yet oddly unique…I like it.

1 Like

Thats so cool! I would like to ask whats the use of the color changing?

1 Like