Making Bumpercard, Need coding help

Hey, I am making a bumpe rcar, with a 2 motor tank drive drivetrain, i have bumpers that should when pressed, stop all motors for 2 seconds, and then continue with normal, how would i do this, I have tried everything that I could think of.

Thanks

It would be helpful to have more information but the way I would this would be to use a callback that changes a boolean, waits 2 seconds then changes it back. You would then use this boolean inside driver control to stop motors and disable actions.