I've tried this script that I found on this website but it won't work.
Here's the link to the old script: https://scriptinghelpers.org/questions/2077/how-do-i-make-a-door-than-only-opens-to-a-a-certain-group-rank
You already have the script you need, within the if statements where you get the players rank you just add an or
Basically in pseudo:
if someoneIsRank or someoneIsrank then