Scripting Support:

Bcript
Joined 08/10/2020
Posts 4,304
01:45 PM 13/04/2021
About Kill bricks!:

This is the code as just a basic one we can start:

brick.touching(debounce((p) => {
p.kill()
}), 500) // We add a debounce of half a second to prevent double hits.

This is the part of the kill and a part of the code to prevent double hits

This code is anither basic one as the first code for a kill brick:

let brick = new Brick(new Vector3(0, 0, 0), new Vector3(5, 5, 5), "#f54242")
brick.visibility = 0.5

The visibility will be 0.5 or it can be anything
Also the color can be anything just change the "#f54242" to anything you want

This one is for the second part of the code:

Game.newBrick(brick) // "Parent" the brick to the game so players will download it.

Thats all for a scripting support!
By KenazP4


Bcript
Joined 08/10/2020
Posts 4,304
01:48 PM 13/04/2021
Sorry if there is bad spelling im typing on mobile and its really hard sometimes

1