RobloxLocked (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>Trappingnoobs
Fixed syntax examples
Line 38: Line 38:
game.CoreGui.RobloxGui:Destroy() -- still no</code>
game.CoreGui.RobloxGui:Destroy() -- still no</code>
[[Command Bar]]:<code lua>
[[Command Bar]]:<code lua>
game.CoreGui.RobloxLocked = false</pre>
game.CoreGui.RobloxLocked = false</code>
[[Script]]:<code lua>
[[Script]]:<code lua>
game.CoreGui.RobloxGui:Destroy() -- Yes!</code>}}
game.CoreGui.RobloxGui:Destroy() -- Yes!</code>}}


[[Category:Properties]]
[[Category:Properties]]

Revision as of 22:10, 12 February 2012

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
RobloxLocked
Type bool
Description If true, the object and its descendants cannot be indexed or edited by a Script or LocalScript and will throw an error if it is attempted.
Member of Instance


Example
{{{1}}}


RobloxLocked doesn't get saved

Therefore, you can set an object's RobloxLocked property to true, but unless you found some way to do that with a CoreScript at the start of the game, you will still be able to access the object from a Script or LocalScript. There are, however, some objects that are RobloxLocked by default.

Example
{{{1}}}


RobloxLocked-ness is inherited

This means that if Workspace.RobloxLocked is true, then everything in the Workspace will act as if it was RobloxLocked.

Example
{{{1}}}