how do you make Mario's jumping animation play when he is falling off of something?

i need some help please

i am not sure how to do this sorry

You could use a raycast to detect if your on something or not