|
| 24 Aug 2014 09:04 PM |
| There is a way to unlock all parts in a workspace, but how do I lock all parts without opening every model to be able to select all its parts? |
|
|
| Report Abuse |
|
EgoMoose
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 2896 |
|
|
| 24 Aug 2014 09:09 PM |
Use this in the command bar
function Gather(Objects, recurse, tabby, Type) for i, Object in pairs(Objects) do if Object:IsA(Type) and not Object:IsA("Terrain") then table.insert(tabby, Object) end if recurse then Gather(Object:GetChildren(), true, tabby, Type) end end return tabby end
for i, p in pairs(Gather(game.Workspace:GetChildren(), true, {}, "BasePart")) do p.Locked = true end |
|
|
| Report Abuse |
|