Script plugin for HEX