How do you insert code into a model?!

[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
04:40 PM 12/07/2020
If edged doesn't answer this he is not a developer EXPOSED


[NODE] MartinatorAlt
Joined 11/06/2020
Posts 536
04:40 PM 12/07/2020
you cant


[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
04:42 PM 12/07/2020
Quote from MartinatorAlt , 04:40 PM 12/07/2020
you cant
Then how does a sword work???
i am confusion


[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
04:44 PM 12/07/2020
Quote from The Windows 10 , 04:42 PM 12/07/2020
Quote from MartinatorAlt , 04:40 PM 12/07/2020
you cant

Then how does a sword work???
i am confusion
How does zombies work how does?????????????????????????????????? ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿


[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
04:44 PM 12/07/2020
Quote from The Windows 10 , 04:44 PM 12/07/2020
Quote from The Windows 10 , 04:42 PM 12/07/2020
Quote from MartinatorAlt , 04:40 PM 12/07/2020
you cant

Then how does a sword work???
i am confusion

How does zombies work how does?????????????????????????????????? ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿
What is code what is script hdiwiwlwapIajvawhwhba


[YT] The Windows 10
Joined 30/04/2020
Posts 3,138
04:45 PM 12/07/2020
seizure


[feet] Edged
Joined 08/07/2020
Posts 579
04:53 PM 12/07/2020
lol get a chainsaw and cut a monitor in half, take a paper and write "code", insert the paper into the monitor, use FLEX TAPE to close it and bam! A code inserted into a model.


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
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!


[LGBT] Ryn
Joined 20/10/2017
Posts 108
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.


[feet] Edged
Joined 08/07/2020
Posts 579
09:39 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!
He was joking, he told me on discord to do this lol


[feet] Edged
Joined 08/07/2020
Posts 579
09:40 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!
And no need to add a Value type to the brick, it's self defined.

1 2