Restricted axis script functioning