@Coolcaden26 wanted me to make another version of his guide, so, here it is!
First, you place a sentry, of course. Then, make a property, make it a number property.
Then, make a counter. Set it like this:
Make the count scope globle.
Then, when a sentry is knocked out, make it brodcast on channel “Sentry knocked out.” Then, make the starting value for the counter X, which is the amount of sentries spawned in on game start, make the property also have a starting value of X.
Then, place a wire repeater, make it repeat the pulse when the sentry is knocked out. (use wires) Then, set the delay to the respawn time. Last, when the wire repeater recives a pulse, Increment the counter.
That is all for the property, next, place a overlay. Then, set the block code to “when reciving on channel” and make the channel “Sentry knocked out.”
Last, set block code like this:
You are done now, This is @Coolcaden26’s guide: