How do you insert code into a model?!

[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
10:19 AM 13/07/2020
Quote from vv0id1sm , 11:51 PM 12/07/2020
Unfortunately you can't insert scripts into a model in workshop.
Instead, you need to write the script in a text editor such as notepad or VSC and save it to the user_scripts folder!
If you want to get a brick though, do something such as
const brick1 = world.bricks.find(brick => brick.name === "brick1")
Just replace brick1 with the name of the brick, and replace const with const, let or var!
Too confusing for my lego brain


[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
10:19 AM 13/07/2020
Quote from Ryn , 03:32 AM 13/07/2020
That DOES require knowledge of which brick is to be changed and it's name as well as a computer powerful enough to scroll through the editor depending on how many bricks you have in your place.
???????
¿¿¿¿¿¿¿

1 2