HTML Code:
//#CLIENTSIDE
if (created || playerenters) {
this.slashAmounts = 30;
}
if (was hit) { //Remove the space.
this.slashAmounts -= 1;
message Slash me #v(this.slash) more times!;
if (this.slashAmounts <= 0) {
lay2 greenrupee,playerx,playery;
this.slashAmounts = 30;
}
}
You don't need a timeout.