What a scale is
There are twelve different notes. A scale is a choice of five or seven of them that sound good together, measured from one starting note, the root. Most music stays inside one scale for long stretches, which is why a note from outside it stands out. The same pattern of steps started from a different root is the same scale in a different key.