Ok i wanted to make something like a craft system bud it lags as hell because of a part in da script and its not my computer bud the script this is the script plz fix it
if (playerenters) {message Free Table;hide;}
if (actionmining) {this.User=#a;this.Mine=this.Mine+1; message #v(this.Mine)% by #v(this.User);sleep 0;}
if (this.User=#a) {
if (this.Mine=100) {setimg fossil.gif;this.Mine=this.Mine-100;toweapons Rock;hide;destroy;message Free Table;}}