How to practice a scale
Start with a single position, slowly, with the metronome, going up and down. Spot the root notes: they are your anchor points when improvising.
Once the position is solid, connect it to the neighboring positions to cover the whole neck, then improvise over the chords of the scale.