1 press F10
2 writte "scene.my.(anything)", like scene.my.layer or scene.my.anything, then add + "=(value)" or "="(string)" "
3 go in the laser, click on "script menu"
4 find for onLaserHit and write "(e)=>{scene.my.(the thig you have created) = 1}
5 go on the attatched object and on the collide set writte "{scene.my.(yah you know)}
If you want the value of them returns to initial, use the update of the laser
DON'T ADD ANY " MENTIONED ON THIS TEXT, ELSE IF VALUE IS A STRING