Script Custom Rig Animattion

Hi I picked up on game making after stopping for a while im trying to make a monster using a miximo model it is already rigged and everything i just would like to know how to get animations playing in game as well as give it the ability to move around!

Update i got its animations to play ingame but i dont know how to assign animations like make it move around and play a idle animation when its idle it uses bones instead of parts btw.

You need to script that system:
Like detecting when it is just standing still, jumping, walking, etc…