Disable Button

Is there a way to disable a button at the end of a clip, but when you play the clip again, it will return to working? I dont know if you understand this or not, if you don’t ask for a more in depth question.