Hello there is such a situation namely, is it possible to hide the scoreboard after getting a certain number?
for example score = 20 scoreboard hide
(sorry for my English)
Make people join a team and display the score on the team's sidebar.
When a teammate reaches 20, kick it from the team
You can also hide sidebar by typping /scoreboard objectives setdisplay sidebar
I got into chiptune music composition.
You can listen to them on my Youtube channel :
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).