Let’s say when youre building any build, finished with all of them organized, you probably learnt on how to optimize your builds like transparent parts should not cast shadow or you want to change their color but you dont wanna go all of the parts and select each one of them or you dont wanna select them manually because it will lag a bit because of all the select boxes around your parts so i have a solution for you but it will be better to organize all parts of your building as in windows, doors, frames whatever you call it. The best part about this tutorial is you dont need to use any plugins
So lets start opening the Command Bar, if you dont know how to do it click on the view tab on the top of ur screen and then select “Command Bar” and a small window will appear at the very bottom of ur screen.
Now lets reference all the parts/groups in your building because command bar requires some scripting but it should be easy
Now we type in the command
for _, i in pairs(building) do -- building as in your path to your building or model
if i:IsA("BasePart") then -- we have to check if its a Part because without it you dont know if theres a Weld instance or anything that isnt related to Parts
i.BrickColor = "color u want" --now we set out their properties, ill do their appearance but its up to you, you could change its transparency, properties boolean such as CanCollide or Anchored or CastShadow etc etc
i.Material = "material you want"
i.CanCollide = false/true
i.Anchored = false/true
end
end
Now the conclusion is to just loop through all the building’s parts and change their properties.
you can copy paste and it will automatically convert to one line. credit Fastasflashdev for correcting
for _, i in pairs(building) do if i:IsA("BasePart") then i.Material = "material" i.BrickColor = "Brick color" end end
-- set any property of a part but if you want to change specific parts inside the building then you would want to do other property checks of them parts like v v
if i:IsA("BasePart") and i.Transparency > 0 and i.CanCollide == false then -- these are just examples
And then when you type what properties you want, then hit Enter you should see changes on every part you want to execute to has already changed
Heres an example of me using a doomspire tower and change its color from blue to red with just the command bar without any form of selecting or running the game with a script
Before: (you could see what properties im trying to change from the commandbar)
After:
Hope it helps! Have a great day!