Hello, this script doesn’t work. It doesn’t change the colors of the text and doesn’t bold it either. RichText is enabled on the text label. (I’m using the hex values of the colors, so that’s why there’s a # before the break)
local OldIntensityColor = _GameLib.Config.DifficultyColors[math.floor(OldIntensity)]:ToHex()
local IntensityColor = _GameLib.Config.DifficultyColors[AbsDifficulty]:ToHex()
local FinalString = "<b>"..PlayersSurvived.."/"..PlayersTotal.."</b> Survived: "
if GameFolder.DifficultyLocked.Value then
FinalString = FinalString.."Intensity is locked at"
FinalString = FinalString.."<b><font color=\"#"..OldIntensityColor.."\">"..(math.round(OldIntensity * 100) / 100).."</b>"
else
FinalString = FinalString.."<font color=\"#"..OldIntensityColor.."\">"..(math.round(OldIntensity * 100) / 100)
FinalString = FinalString.." ("..(IntensityDifference >= 0 and "+" or "-")..IntensityDifference..")</font> ->"
FinalString = FinalString.."<b><font color=\"#"..IntensityColor.."\">"..(math.round(Intensity * 100) / 100).." (".._GameLib.Config.DifficultyNames[AbsDifficulty]..")</b></font>"
end