Help with UI scripting

Hey, I was work on a scrip where I create a new text label. I wanted the text in the text label to be BOLD
image
I tried using TextLabel.FontFace.Bold = true, TextLabel.FontFace.Weight = Enum.FontWeight.Bold but none of them worked. Can anyone help me with this.

Edit: I am aware of using <B>...</B> but I want RichText to be false. So any other method ?

1 Like

I came across something similar before, I think you had to do something along the lines of
TextLabel.Font.Weight = Enum.FontWeight.Bold

I tired it but it didn’t work

I think you may actually have to put the textlabel in replicatedstorage with Bold set and then clone it. It may have something to do with certain fonts. Can’t recall.

Ok, I couldn’t remember, it was a weird thing I spent more time than necessary to figure out.
I’ve been setting the fontface by:

TextLabel.FontFace = Font.fromName("IndieFlower", Enum.FontWeight.Regular, Enum.FontStyle.Normal)

idk try

TextLabel.Font = Enum.Font.JuraBold---idk how the bold jura is spelt so yea

for me weight is broken in studio i use the command runner at the bottem

nvm it won’t work,i thought it would since gotham did for me
wait
how about this

Subtitle.FontFace.Weight = Enum.FontWeight.Bold

FontFace is readonly, I believe it is not possible to set bold from scripts.
You could try to create a bold label and clone it each time you want to use it.

Roblox is a little bit stupid as you can see in the embedded video


Not your fault, FontFace should not be readonly.

1 Like