Why does this script not work?

[ARGon] Explorer.
Joined 29/08/2020
Posts 8,229
05:42 PM 26/07/2021
bconst Door = world.bricks.find(brick => brick.name === 'Door')

purpleBrick.clicked((player, secure) => {
if (!secure) return
console.log(player.username + " Tried to open the door but it is locked.")
})

(The brick's name is Door so it should work, right?)


R_ry
Joined 30/04/2020
Posts 13,487
05:43 PM 26/07/2021
im not sure, try clicking on the door when the script is ative


[ARGon] Explorer.
Joined 29/08/2020
Posts 8,229
05:43 PM 26/07/2021
FYI the script is supposed to make the chat say the player's name tried to open the door but it was locked.


SmartLion
Joined 16/04/2017
Posts 1,970
06:38 PM 26/07/2021
"bconst" is invalid, did you mean "const"?


[ARGon] Explorer.
Joined 29/08/2020
Posts 8,229
07:21 PM 26/07/2021
Quote from SmartLion , 06:38 PM 26/07/2021
"bconst" is invalid, did you mean "const"?
That is most likely the issue lol. Thanks!


[ARGH] SansTheMemeLord
Joined 26/10/2020
Posts 4,420
06:12 AM 27/07/2021
Quote from Explorer. , 07:21 PM 26/07/2021
Quote from SmartLion , 06:38 PM 26/07/2021
"bconst" is invalid, did you mean "const"?

That is most likely the issue lol. Thanks!
typo moment

1