PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. Instead, you should go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar

Locked

BasePart

bool

The Locked property determines whether a BasePart|part (or a Model|model it is contained within) may be selected in Roblox Studio by clicking on it. This property is most often enabled on parts within environment models that aren’t being edited at the moment. Roblox Studio has a Lock/Unlock All tool that can toggle the Locked state of every part descendant in a model at once.


Code Samples


Recursive Unlock

This code sample uses the concept of recursion to unlock all parts that are a descendant of a model.