Polygon clipping and offset

Hello
welcome to this forum.
In order to get help it is highly recommended you post what you got (the script)
You can read the guidelines