AI Enemy Goomba Style (Super Mario

Hi Guy!

1/q There is any way to know how can i make an Enemy Ai with the style of Goomba in Super Mario ?

i have tried so many scripts but thyr not working right,

2/q do i have to make waypoints too, to make the enemy walk on X Y ??back and forward?

i´ll appreciate the replay

Did you end up finding it @Anas ??