generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Building Helpers
Home Search
 

Re: Lock all?

Previous Thread :: Next Thread 
hauntedusa is not online. hauntedusa
Joined: 28 Jan 2009
Total Posts: 515
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image