Cant set boldness with scripts

local TitleText = Instance.new("TextLabel")
	TitleText.Parent = MAIN
	TitleText.Text = Title
	TitleText.BackgroundTransparency = 1
	TitleText.TextColor3 = Color3.new(1, 1, 1)
	TitleText.Name = "Title"
	TitleText.Size = UDim2.new(0.634, 0,0.262, 0)
	TitleText.Position = UDim2.new(0.238, 0,0.482, 0)
	TitleText.FontFace = Font.new("rbxassetid://12187364147") -- this works
	TitleText.TextScaled = true
	TitleText.FontFace.Weight = Enum.FontWeight.Bold --here
	TitleText.TextXAlignment = Enum.TextXAlignment.Left

This does not set the font weight

You have to set the weight of the actual Font being created with Font.new, so you can do something like this

local font = Font.new("rbxassetid://12187364147")
font.Weight = Enum.FontWeight.Bold -- set the new font to bold
TitleText.FontFace = font

You can also set the font’s properties directly inside Font.new to shorten it a bit

local font = Font.new("rbxassetid://12187364147", Enum.FontWeight.Bold)
TitleText.FontFace = font

what abour this

local TitleText = Instance.new("TextLabel")
	TitleText.Parent = MAIN
TitleText.RichText = true
	TitleText.Text = "<b>"..Title.."<b/>"
	TitleText.BackgroundTransparency = 1
	TitleText.TextColor3 = Color3.new(1, 1, 1)
	TitleText.Name = "Title"
	TitleText.Size = UDim2.new(0.634, 0,0.262, 0)
	TitleText.Position = UDim2.new(0.238, 0,0.482, 0)
	TitleText.FontFace = Font.new("rbxassetid://12187364147") -- this works
	TitleText.TextScaled = true
	TitleText.FontFace.Weight = Enum.FontWeight.Bold --here
	TitleText.TextXAlignment = Enum.TextXAlignment.Left