|
| 22 Jun 2014 12:27 AM |
| How do I make it so it accesses a model in workspace and looks into it and changes all of the parts in it to transparency = 1? |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 12:30 AM |
function InvisiParts(model) for i,v in pairs(model:GetChildren()) do if v:IsA("BasePart") then v.Transparency = 1 elseif v:IsA("Model") then InvisiParts(v) end end end
InvisiParts(workspace.ModelName) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 01:30 AM |
| How do I make it when its done making all of the objects transparency to 1 it will print something? |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2014 01:47 AM |
Just add this at the end of the script:
print('Model is now transparent and invisible.') |
|
|
| Report Abuse |
|
|