|
| 18 Apr 2012 03:59 PM |
| Suppose I created a ScreenGui and then how would I make it regenerate or unremovable? |
|
|
| Report Abuse |
|
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 18 Apr 2012 04:03 PM |
| prevention method: Dont remove it. |
|
|
| Report Abuse |
|
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 18 Apr 2012 04:14 PM |
| Yeah, that's the easiest method. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 18 Apr 2012 04:25 PM |
| But then my connections would be gone in my script. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|