So you’ll have a counter device, and the ball goal device should wire to it so that ‘goal scored → increment counter’. The counter should start at 0, and under the “property” tab, have it update a property, we’ll call it “goals”. Note that there should be two counters & goals (for each team, of course), but only 1 property.
As for our “goals” property, make it a team-scoped property. This is the most important part. Then you just plug it into your map settings and boom! This should work!