SectionsString - change color, font, size, etc of parts of TextLabels

%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7(12)
%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7(10)

Like this, you can set color, font, size and shadow for each character.
it is super easy!

Here is an example File! : ColorString.rbxm (3.8 KB)

Here is an example Code :

local SectionsString = require(script.SectionsTextLableModule)
local Lable = script.Parent

SectionsString.SetTextLable(Lable)
Lable.Text = SectionsString.new(Lable,{Text = "R",TextColor3 = Color3.new(255,0,0)}) 
.. SectionsString.new(Lable,{Text = "G",TextColor3 = Color3.new(0,255,0)})
.. SectionsString.new(Lable,{Text = "B",TextColor3 = Color3.new(0,0,255)})

you can change
Text
TextColor3
TextTransparency
Font
TextSize
TextStrokeColor3
TextStrokeTransparency

50 Likes

This is awesome and great solution around creating multiple TextLabels!

This just made my NPC Dialogue 100 times better. Thank you so much!

2 Likes

This module is awesome! However, I have one suggestion. In the example file, the name of the module, 'SectionsTextLableModule', is verbose, maybe change it to the name on this post, 'SectionsString'

This looks amazing! But the API could use some work. Currently it requires immense lines of code to make several long lines of strings.

4 Likes