Presure plate that triggers an animation

I made a object that when your player stands on it, it opens doors. But when he steps off of the object, the doors remain open. How do I make it so the doors only stay open while your on the object.

This can be done with OnTriggerExit, which you can use to call a coroutine function that runs until the doors have shut, or tells the door to use its shutting animation, etc.