How to make gui font bold via script?

I’m not sure if i’m just stupid or you simply cannot do this through a script, but I’m trying to make the font bold whenever a players mouse enters the textbutton. I tried everything:

Enum.FrontFace.Style does not have bold
Enum.FrontFace.Weight does not change when I change it to bold or anything else
FrontFace.Bold = true doesn’t work either

This is very Simple:

TextLabel.FontFace.Weight = Enum.FontWeight.Bold

Something must be wrong then because I’ve tried that and that’s what I’m currently using. However, nothing changes. Here’s the code if that even helps

	playFrame.PlayButton.BackgroundColor3 = Color3.fromRGB(145, 145, 145)
	playFrame.PlayButton.TextButton.FontFace.Weight = Enum.FontWeight.Bold
	playFrame.PlayButton.BackgroundColor3 = Color3.fromRGB(255,255,255)
	playFrame.PlayButton.TextButton.FontFace.Weight = Enum.FontWeight.Regular

Make sure the Font you are using supports FontWeight, some Fonts don’t Support some Types

if you want, use can just use UIStroke as Bold

Ended up using UIStroke, bold just doesn’t work for any fonts i’ve tried. Appreciate it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.