how do i make a destroyed brick appears again?

JUAMPLAYS
Joined 02/02/2019
Posts 7
08:23 PM 06/05/2019
touch = define("onPlayerTouch")
touch.script = '
var brick,client;
brick = arg[0]
client = arg[1]
if brick.Name == "Button" {
brickDestroy(findBrickByName("Wall")) tylorfoot made this script...
}
';
it will destroy the wall right,but,is there a way to make the destroyed brick appears after a time?


gooqbye
Joined 25/02/2019
Posts 23,305
08:23 PM 06/05/2019
Idk


[TylFT] Tylorfoot
Joined 03/06/2017
Posts 6,581
08:26 PM 06/05/2019
instead of using a brickdestroy function use a bricktranslate function
replace the brickdestroy function with this

with findClientByName("Wall") {
var ox,oy,oz;
ox = xPos;
oy = yPos;
oz = zPos;
brickTranslate(id,99999,99999,99999)
schedule(5000,"brickTranslate(id,ox,oy,oz)");
}


[TylFT] Tylorfoot
Joined 03/06/2017
Posts 6,581
08:32 PM 06/05/2019
Quote from Tylorfoot , 08:26 PM 06/05/2019
instead of using a brickdestroy function use a bricktranslate function
replace the brickdestroy function with this

with findClientByName("Wall") {
var ox,oy,oz;
ox = xPos;
oy = yPos;
oz = zPos;
brickTranslate(id,99999,99999,99999)
schedule(5000,"brickTranslate(id,ox,oy,oz)");
}
wait NO
i meant to put findBrickByName instead of findClientByName

with findBrickByName("Wall") {
var ox,oy,oz;
ox = xPos;
oy = yPos;
oz = zPos;
brickTranslate(id,99999,99999,99999)
schedule(5000,"brickTranslate(id,ox,oy,oz)");
}

1