RichText is blurry

image
image

1st image button is not pressed down
2nd image button is pressed down

when the button is not pressed down its blurry, why is that?

function richTextCopy(txt,txtLabel)
	txtLabel.RichText = true
	local stroke = txtLabel:FindFirstChildOfClass("UIStroke")
	if stroke then
		local strokeColor = string.format("#%02X%02X%02X", 
			stroke.Color.R * 255, 
			stroke.Color.G * 255, 
			stroke.Color.B * 255
		)
		
		txtLabel.Text = string.format('<stroke color="%s" thickness="%d">%s</stroke>', strokeColor, stroke.Thickness, txt)
	end
end

I made a function to easily carry the textlabels style over to the rich text

for example: richTextCopy("\u{E002} 100",TextLabel)
\u{E002} is the robux icon code

1 Like