How do I create a mouse sensitivity slider in another scene?

I have been searching for an answer all day and I haven’t been able to make anything work. I want to create a mouse sensitivity slider in my Main Menu scene, that controls how sensitive the mouse/camera is in the other scenes with gameplay, just like the option that most games have. I know very little about sliders and any help would be greatly appreciated.
I already have a working Mouse Look script here below:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class MouseLook : MonoBehaviour
{
    public float mouseSensitivity = 150f;
    public Transform playerBody;
    float xRotation = 0f;

    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;
    }

    void Update()
    {
        float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;
        float mouseY = Input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;

        xRotation -= mouseY;
        xRotation = Mathf.Clamp(xRotation, -90f, 90f);

        transform.localRotation = Quaternion.Euler(xRotation, 0f, 0f);
        playerBody.Rotate(Vector3.up * mouseX);
    }
}

There is a feature in Unity called PlayerPrefs. It’s a way of storing data between successive runs of the game. Since the data is stored in readable files, you wouldn’t use PlayerPrefs for scores, achievements, inventory etc, since someone could edit the file. However, it’s fine for things like audio levels, sensitivity and the like.

In your public method that deals with the slider, use something like:

PlayerPrefs.SetFloat("MouseSensitivity", slider.value);

You can then read that value later and somewhere in the Update event use something like:

float mouseSensitivity = PlayerPrefs.GetFloat("MouseSensitivity");
float rotationAmount = Input.GetAxis("Mouse X") * mouseSensitivity;