How can I make a level system that will unlock certain levels when they're reached

I have 10 of these parts which lock levels 1-10 and I want to know how to make it so that the text for the level you have unlocked and all of the ones before it will change to show that
Screenshot 2023-03-05 at 3.37.45 PM