How to add animation to play after user choose the wrong answer

Okay im a really newbie so sorry for that hehe anyway my question is how can i add animation to my code after the user chooses the wrong answer anyway this program is a QandA game where in when you choose the correct answer the character will attack and when you choose the wrong one the character will miss

Ok to make a animation play after a wrong button is presse you have to specify what button is the true, by a if state for example:

if(buttonTrue = true){
    
//go to next 

}else{ //bt is false
    
warning_popsUP = true;

//You have to make something say the warning_popsUP_End = true

if(warning_popsUP_End = true){

//play animation

animation.Play("animation_name");

}

I hope that helps :slight_smile: