Killing brick script?

Guest 1093
Joined 06/03/2020
Posts 80
03:02 PM 19/05/2020
[ Content Removed ]


[Snipe] Some Hacker
Joined 09/05/2020
Posts 74
07:12 PM 19/05/2020
Quote from Guest 1093 , 03:02 PM 19/05/2020
[ Content Removed ]
Nice university


[TylFT] Tylorfoot
Joined 03/06/2017
Posts 6,581
02:30 PM 23/05/2020
this will make any bricks named 'kill' kill the player on touch

world.bricks.forEach((brick) => {
if(brick.name === 'kill') {
brick.on('touching', (p) => {
if(p.alive) {
p.kill()
}
})
}
})


[CAVY] Arabian Indian Bezos
Joined 09/02/2020
Posts 4,127
12:38 AM 26/05/2020
Quote from Tylorfoot , 02:30 PM 23/05/2020
this will make any bricks named 'kill' kill the player on touch

world.bricks.forEach((brick) => {
if(brick.name === 'kill') {
brick.on('touching', (p) => {
if(p.alive) {
p.kill()
}
})
}
})
that sounds gay

1 2