i need a trigger button script

JUAMPLAYS
Joined 02/02/2019
Posts 7
10:02 PM 11/02/2019
i dont know nothing about script (like 1%) i would like if you guys know how to make a trigger button example:
if i touch a brick i will destoy another wall. can you guys help me!


Brylan
Joined 07/01/2019
Posts 15,061
10:14 PM 11/02/2019
I have no clue how to script so i'm no help.


JUAMPLAYS
Joined 02/02/2019
Posts 7
02:39 AM 13/02/2019
dont worry guy! at least you replied me


GreenCat
Joined 25/02/2019
Posts 1
04:24 AM 25/02/2019
There is not a function for an object being touched (ITS IMPOSSIBLE).


[TylFT] Tylorfoot
Joined 03/06/2017
Posts 6,581
01:10 AM 27/02/2019
you can use something like this:
touch = define("onPlayerTouch")
touch.script = '
var brick,client;
brick = arg[0]
client = arg[1]
if brick.Name == "Button" {
brickDestroy(findBrickByName("Wall"))
}
';

have 2 bricks named Button and Wall
both with capital B's and W's


Snowhjerta
Joined 08/01/2019
Posts 135
08:18 AM 02/03/2019
OnPlayerTouch is a function which triggers the brick which has script with that function and scripting it to make explosive button can take some minutes. If i guess.

1