How do i make a box give points

guys i do not know how to destroy a box and make the box give points how i make that(death match)

you could try like
The trigger will be : when a unit gets attacked

if (( unit type of ( last attacking unit ) )) == (unit)

then do:

if (( unit type of ( last attacked unit ) )) == (box)

then do:
set points of ( owner of ( last attacking unit ) ) as ((( points of ( owner of ( last attacking unit ) ) )) + (1))
destroy ( last attacked unit )

Please use the scripting help category here: https://www.modd.io/forum/c/scripting-help/10