Talk:RobloxLocked (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus
No edit summary
>ArceusInator
reply to Anaminus -- The smartest robloxian to ever live.
 
(2 intermediate revisions by 2 users not shown)
Line 30: Line 30:
  game.CoreGui.RobloxGui:Remove() -- yes!
  game.CoreGui.RobloxGui:Remove() -- yes!
[[User:Anaminus|--Anaminus]] 02:29, 1 January 2011 (UTC)
[[User:Anaminus|--Anaminus]] 02:29, 1 January 2011 (UTC)
:I think I'm gonna add that to the page.  I'll also add that it's a locked property and cannot be assigned via Script/LocalScript.--[[User:ArceusInator|ArceusInator]] 13:44, 6 January 2011 (UTC)

Latest revision as of 13:44, 6 January 2011

Names can be deceiving, this is not what RobloxLocked does at all.

Example
In the Command bar.
game.Workspace.Part.RobloxLocked = true
In a Script run thereafter.
game.Workspace.Part.Anchored = true

It works successfully. CamoyContribs (December 31 2010)

Well then what is it for? I see this when testing:

Example
In the command bar, I run
print( game.CoreGui.RobloxGui.RobloxLocked ) --> true
print( Workspace.RobloxLocked ) --> false
In a script, I run
print( game.CoreGui.RobloxGui:GetChildren() ) --> s RobloxGui
print( Workspace:GetChildren() ) --> table: xxxxx

--ArceusInator 18:00, 31 December 2010 (UTC)

Maybe RobloxLocked has to be, by default, true in order for it to work? --ArceusInator 18:01, 31 December 2010 (UTC)

No that can't be because some of the CoreGui scripts use RobloxLocked internally. CamoyContribs (December 31 2010)


RobloxLockedness is inherited from ascendants.

Script:
	game.CoreGui.RobloxGui:Remove() -- nope
Command:
	game.CoreGui.RobloxGui.RobloxLocked = false
Script:
	game.CoreGui.RobloxGui:Remove() -- nope
Command:
	game.CoreGui.RobloxLocked = false
Script:
	game.CoreGui.RobloxGui:Remove() -- yes!

--Anaminus 02:29, 1 January 2011 (UTC)

I think I'm gonna add that to the page. I'll also add that it's a locked property and cannot be assigned via Script/LocalScript.--ArceusInator 13:44, 6 January 2011 (UTC)