Make game end and another team wins if sentry is knocked out

Alright, so I am making a game. The goal of the game is to knock out the other team’s commander (a sentry.) The game ends when the sentry is knocked out and I want to make it so that the knockout provides a property “superiority” and adds a score of +1 for whichever team knocked out the other team’s sentry, but it won’t work. Anyone have any ideas?

Connect the sentry to a relay first, set to specific team. Make that team the team who is supposed to defeat the sentry. Connect that to a counter that tracks a property and make sure the leaderboard counts that property (I’m assuming you know that, so ask if you don’t.)

Also, make sure you place a property device and set that property to a number. Make sure the scope of the property and counter is set to team.