Is there a way to make it so that sentrys can't attack you, but you can?

@SOME_RANDOM_PERSON ,

I made a guide saying how to make a sentry not attack anyone, but you can’t hit it

the link above makes you able to hit the sentry and the sentry can’t hit you