How do I apply a gradient to part of a text?

Like the title says I want to figure out how to make part of a text have a gradient.
I do know how to do this with 2 instances, but is there a way to do this with only 1 TextLabel instance (for the sake of less instances to work with and hopefully have a tiny bit more performance)?
I recently just learned about RichText and when I tested something out through a script, I wasn’t able to get part of a text have a gradient.
Also tried to look for an answer on here but I wasn’t able to find a wanted result.

8 Likes

Put the gradient on the text and make sure the text is white, then use richtext.

5 Likes

Sadly that was already turned on but it doesn’t seem to be working :frowning_face:
Here is an example of what it looks like:
image

notification.Text = 'Item Recieved: <font color="#FFFFFF"> Test </font>'

Works only if I use complete black, but that’s not what I want
image

notification.Text = 'Item Recieved: <font color="#000000"> Test </font>'
3 Likes

use roblox ui gradient, its very simple

4 Likes

I was, and I was doing it the entire time throughout this post
image

So is it or is it not possible to make a part of a text into a gradient or do I have to use 2 TextLabel’s ?

3 Likes

It is possible.


character limit


lemme do it

3 Likes

what color do you need?


e
e


send model

2 Likes

That seems like the easiest way, but, in my game, not every item name will have the exact same amount of characters.

3 Likes

Alr
Also how do you type like that without it showing that you edited your comment
(roblox studio decided to update right after I sent this message)

2 Likes

use three - then start a new line

1 Like

I think I’m blind since I can’t see this line that you’re talking about

2 Likes
  • boblox wont allow
  • veri hard

0 voters

2 Likes

(-) you see that line, just start a new line that write that line 3 times

3 Likes

yea no don’t see any line like you described
:disappointed:
also roblox studio is almost done with updating so I’ll send the file soon

1 Like

test.rbxm (6.4 KB)

ok,

copy the three lines then start a new line then write the three lines.


I think I’m doing something wrong

But this is besides the point, and it won’t get me a fix for my post

done,
so real1!1!


@TheWierdMan646 you there?

Yes I am

Also the problem with this is that it isn’t exactly what I want
What If I want, let’s say, a rainbow gradient on the “Item” text while everything else is a solid white?
An example being is this item notification from GPO
image

Unsure if this can be done with just 1 TextLabel

blud forgot about docs real boblox ui text (veri real)