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 » Scripters
Home Search
 

Re: How to lock a GUI

Previous Thread :: Next Thread 
rollingthunder101 is not online. rollingthunder101
Joined: 18 Aug 2011
Total Posts: 59
18 Apr 2012 03:59 PM
Suppose I created a ScreenGui and then how would I make it regenerate or unremovable?
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
18 Apr 2012 04:03 PM
prevention method: Dont remove it.
Report Abuse
rollingthunder101 is not online. rollingthunder101
Joined: 18 Aug 2011
Total Posts: 59
18 Apr 2012 04:04 PM
-.-.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
18 Apr 2012 04:14 PM
Yeah, that's the easiest method.
Report Abuse
rollingthunder101 is not online. rollingthunder101
Joined: 18 Aug 2011
Total Posts: 59
18 Apr 2012 04:24 PM
Can someone give me a legit method, also will this work?

    GUI.Changed:connect(function(Property)
        --Fake function
        CreateNewGui()
    end)
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
18 Apr 2012 04:24 PM
If you want it to still be there when you die, put it in StarterGui.

~Techboy6601: The IDE guy~
Report Abuse
rollingthunder101 is not online. rollingthunder101
Joined: 18 Aug 2011
Total Posts: 59
18 Apr 2012 04:25 PM
But then my connections would be gone in my script.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
18 Apr 2012 04:35 PM
This is for advanced programming, not simple reparenting.
If you really care about it that much, then make a "core" script parented to nil that keeps a local table, and then a _G table you can't edit that the guis access and reparent themselves so they can't be removed but keep connections.
If you don't understand that, then you REALLY need to get out.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
18 Apr 2012 04:36 PM
Also, set a metatable to the _G table, like this
_G.a = {"meow"}
local a = {}
setmetatable(_G.a, { __index=a, __newmethod=error })
I believe that would work.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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