It's been a while since I post here but I was playing around with some random chords and found a shape that I liked the sound of but I just can't figure out the scale to use over it. It's the same shape just moved down the neck.

D 8 4 1
A 9 5 2
F 10 6 3
C 11 7 4
G 8 4 1
C 8 4 1

So the notes contained here are

1st - G# D# B D# F# A#
2nd - E B G B D F#
3rd - C# G# E G# B D#

Part of me wants to say B Major but the second chord throws all of that out the window and makes me think there's a key change there.

Any theory gurus out there willing to help me make sense of what I'm doing here?

They're dominant 7ths with a 9 on top, so I think just calling them a 9 is correct, however it could be written G#7add9, I'm not 100% sure.

As for what scale to play over, you're probably right in going for B major, but just make note of the minor 3rd and 6th on the E chord. That'd be B minor I think. I can't say for definite as I can't hear the resolving note without a guitar in my hand.

They're dominant 7ths with a 9 on top, so I think just calling them a 9 is correct, however it could be written G#7add9, I'm not 100% sure.

As for what scale to play over, you're probably right in going for B major, but just make note of the minor 3rd and 6th on the E chord. That'd be B minor I think. I can't say for definite as I can't hear the resolving note without a guitar in my hand.

No. They are all minor9 chords. They have a minor third, not major.

And the key would be G#m. Don't just look at the notes and find a scale that fits every chord. Listen to the chord progression and where it resolves to. Yes, G# minor and B major scale have the same notes but they are different keys.

You can't play just one scale over these chords. You need to use some accidentals. Try to hit the chord tones.

you need to use different scales for each chord, or use the chord notes to improvise

This is bad. Playing different scales over each chord, rather than playing a melody in the key is the wrong way to do it. Yes, it works (sort of), but it's very messy.

@TS:
Don't think of your melody lines in terms of scales. Think in terms of the key. What notes satisfy the key signature of G#minor? (Hint: The notes of the key signature are the same as, in this case, the G#minor scale.) Once you have the notes of the key signature, add in accidentals to make it sound smoother. I would suggest that most of your accidentals also accent chord tones.