clone Reference script

need simple script to clone of Reference object
any efforts are appreciated