Player prefs error

Hi I ve got a problem with score . The player prefs work but no the conditions inside
Edit: i didn’t add the script .I don’t know what i was thinking about…

if the object is inactive. and this script is on the inactive object. this script should not be running,
change the Debug
Debug.Log(“Ho lo score”); to Debug.Log("Hi Lo score = " + score);

is SText a gameobject or a text in a gui element