Hi, I don't know if i understood the question, but you want to compare to Time Survived + (Kill Count * 5)
instead of comparing to TimeSurvived
?
First of all, the way you are comparing text is not quite ok in my understanding. Because comparing strings will compare them alphabetically instead of numerically and (i asume) you need to compare numbers.
So, first get the numbers (idk if they are int or float in your case, but its similar. Also i asume you have already kill count number stored as an integer in var killcount
or something like that).
var score = int($Score.text)
var time = int($TimeSurvived.text)
then you get the number you want:
var num = time + killcount*5
Then you compare:
if score < num:
score = num
$Score.text = str(score)
Is that what you wanted?