I want to do this movement in my model but through grasshopper. Can someone share any idea or any script tools I should use for this?

It’s very basic for GH

Read this to get efficient help.

And please describe your issue in the thread title instead of the useless word “Grasshopper”.

1. Choose a descriptive title for your post