Saving multiple slider values in playerprefs

I am having an issue where I am only able to store one slider value to playerprefs. I have 10 sliders and if I attach this script, they all inherit the saved value of the first slider in the hierarchy.

public Slider Slider;
public float valueofslider ;


void Start()
{
valueofslider = PlayerPrefs.GetFloat("valueofslider");
Slider.value = valueofslider;
}

void Update()
{

  valueofslider = Slider.value;

if (Input.GetKeyDown(KeyCode.S))
{
    PlayerPrefs.SetFloat("valueofslider", valueofslider);
    Debug.Log("save");
    }
 }

Thats because all of your sliders are loading the same variable in playerprefs. If you have 10 sliders you will need 10 variables saved in playerprefs.

You can add an int variable in the script working like an id and you save the value like sliderValue+id so they will store all values and load the specific value too

Create a public int id and in the inspector of eqch slider set a unique id.

They save the value with valueOfSlider + id.

The same with load.