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?)
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?)
05:43 PM 26/07/2021
im not sure, try clicking on the door when the script is ative
06:38 PM 26/07/2021
"bconst" is invalid, did you mean "const"?