|
| 28 Aug 2017 03:14 PM |
| Hello, i want to "select" all the parts in ################ ##### ########## ###### and meshes and even models) but i dont really have an idea how to. local v = workspace.Exterior.Part this is what ive got so far, v is all the stuff i want to select and apply something like transparency to all of it like v.Transparency=1. Do you have any ideas? Thanks! |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2017 03:15 PM |
| all the parts in a model (like uni on s* |
|
|
| Report Abuse |
|
|
igrach2
|
  |
| Joined: 09 Mar 2017 |
| Total Posts: 252 |
|
|
| 28 Aug 2017 03:19 PM |
wait(2) for i,v in ipairs(workspace.Exterior:GetChildren())do v.Transparency=1 end |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2017 03:33 PM |
| The same thing :/ anyone else? but thanks. |
|
|
| Report Abuse |
|
|
FluentLua
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1245 |
|
|
| 28 Aug 2017 03:35 PM |
function invisible(model) for i,v in pairs(model:GetChildren()) do wait() if v:IsA("Model") then invisible(model) elseif v:IsA("BasePart") then v.Transparency = 1 end end end end
invisible(game.Workspace)
if theres a lot of parts, it may take a few seconds to minutes to run.
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
FluentLua
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 1245 |
|
|
| 28 Aug 2017 03:38 PM |
function invisible(model) for i,v in pairs(model:GetChildren()) do wait() if v:IsA("Model") then invisible(v) elseif v:IsA("BasePart") then v.Transparency = 1 end end end end
invisible(game.Workspace)
fixed something
#code Do not give up; the beginning is always the hardest part. |
|
|
| Report Abuse |
|
|
|
| 28 Aug 2017 03:46 PM |
| Thanks a lot! i've tried to make it work with a click of a button but it didnt work out sadly. could it be possible to make it Local? so only 1 Player sees it disappear after clicking the button? just asking! |
|
|
| Report Abuse |
|
|