Folding script