Wandering pig help

I need the pig here:
image
To move randomly by spinning its legs I tried to but just deleted the code bc it did not work any help?

I can help you move the pig randomly but what do you mean by “spinning its legs”

Does that need an explanation??

im sorry I made u upset but I don’t know what they mean