About saving player position

Hi
My game has 2 scene.

When score is 10, I hope close scene1 and open scene2 and player start at scene1 position.

I solve the scene change but I can’t save players position.

How can I save scene1 players position and use in scene2?

Create a static variable and set it before loading the next scene. Put this in the player controller script:

static Vector3 lastPosition;

before scene change:

lastPosition = transform.position;

after scene change:

transform.position = lastPosition;