|
| 06 Dec 2013 05:40 PM |
1. Find all the parts in a model (ex: workspace.modelname)
2. For each part, a Value is created, along with a piece of code, that code in a script simply creates that part. Create Values for all these parts.
3. Get those Values and I forgot how but incorporate all of those Values into a script (AKA; get the values then paste it into a script one after another).
I need help, I tried and failed horribly. Can you help me below? |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2013 05:41 PM |
2. - The piece of code is the Value. ex:
There's a part in workspace.modelname
it would make a value then make the value this;
part = Instance.new("Part") part.Parent = game.Workspace etc. etc. etc. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 06 Dec 2013 05:41 PM |
2,3 what?
1:
game.Workspace.MODELNAME:GetChildren |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 06 Dec 2013 05:50 PM |
Well for number 1 :
local model = --reference model here, you can set to workspace
for i,part in pairs (model:GetChildren()) do -- setting up the for loop if part:IsA("Part") then -- making sure the part is a part -- this will do the parts one by one so if you put a wait in here it will wait for every part there is -- if you write down part.Transparency = 1 all the parts in the model will be invisible end end |
|
|
| Report Abuse |
|
|