Прокрутка для змінної

[Range(0f,100f)]

public float Range = 10f;

[SerializeField]    // робить доступним в Інспекторі

private float speed = 3.0f;