How to make a whack a sentry game?

Use this guide

And have buttons and props repeatedly get activated and deactivated