The task – creating a lamp

In this lesson we will learn to create a lamp that can be lit by clicking on it.

 

We will open the CREATE menu and build the shape of the lamp.

 

 

Open the CONTENT tab and click on the NEW SCRIPT button, then copy the prepared SCRIPT directly from the link.

Paste the copied code by pressing CTRL + V, and press the SAVE button.

 

After the CREATE menu is closed, the light will turn on and off by clicking the lamp.