Code of the save/load game doesn't work

Here is my code of the save/load game. When I press K, I want to remember player.transform.position data and load it by pressing L, but when I press it, nothing happens.

float playerX;
float playerY;
float playerZ;
bool saved;
public Transform playerPosition;
	
void Update ()
{
	playerX = (playerPosition.transform.position.x);
	playerY = (playerPosition.transform.position.y);
	playerZ = (playerPosition.transform.position.z);

	if (Input.GetKeyDown (KeyCode.K) && !saved)
		SaveStuff();
	else if (Input.GetKeyDown (KeyCode.L) && saved)
		LoadStuff();
}

void SaveStuff()
{
	saved = true;
	PlayerPrefs.SetFloat (
		"playerX", playerPosition.transform.position.x);
	PlayerPrefs.SetFloat (
		"playerY", playerPosition.transform.position.y);
	PlayerPrefs.SetFloat (
		"playerZ", playerPosition.transform.position.z);
}

void LoadStuff()
{
	saved = false;
	playerX = (PlayerPrefs.GetFloat ("playerX"));
	playerY = (PlayerPrefs.GetFloat ("playerY"));
	playerZ = (PlayerPrefs.GetFloat ("playerZ"));
}

You code correct, but your player change not position in Loadstuff(). Maybe write:

 void LoadStuff() {
  saved = false;
  playerX = (PlayerPrefs.GetFloat ("playerX"));
  playerY = (PlayerPrefs.GetFloat ("playerY"));
  playerZ = (PlayerPrefs.GetFloat ("playerZ"));
  playerPosition.transform.position = new Vector3(playerX, playerY, playerZ); //change position
 }

I hope that it will help you.