how to make a situation like this?:

while(the player animation "walk" is running)
{
execute the actions on this curly brackets
wait(1)
}