Hello, I was bored so I made this:
It’s a color changing textbox(duh) which I thought was pretty cool. I made a module if you guys wanna use it
Setup:
- Insert the module into ReplicatedStorage (Module: Color changing text module)
- 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:
Tell me if this works or if there’s any bugs :))