help with game object script problem

heyy everyone iv been trying to finish off this script for well over an hour now and need some help with it.

so in scene 1 i have got an object called ScoreKeeper which at the end of the level does not get destroyed when the new scene is loaded,

then in the second scene i have an object called Ender which has a link to a script called player_score from the Score Keeper game object but in order to use anything from the script player_score i have to have Score keeper link to Ender and it has to be done through script

maybe that picture will clear it up more as you can see i need to get ScoreKeeper added to the blue highlited area by script.

thanks for the help and i hope this wasn’t to long or confusing.

Any reference to the ScoreKeeper should be made like this: (JS)

var PSS : playerScore_Script;
var obj=GameObject.Find("ScoreKeeper");
if(obj)PSS = obj.GetComponent("playerScore_Script");
if(!PSS) return;

PSS.playerScore++;

Furthermore, you should name your playerscroe script something else, then add this in the front.

function Awake(){
if(GameObject.Find("ScoreKeeper")){
Destroy(gameObject);
return;
}

gameObject.name="ScoreKeeper";
DontDestroyOnLoad(gameObject);
}