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: ResetPlayerGuiOnSpawn?

Previous Thread :: Next Thread 
RaidenJPN is not online. RaidenJPN
Joined: 22 May 2013
Total Posts: 6920
29 Oct 2013 06:25 PM
Apparently it's a property, most likely a bool,

but it's completely undocumented,

so I was wondering if any of you guys knew anything about it.

http://wiki.roblox.com/index.php/ResetPlayerGuiOnSpawn_(Property)
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
29 Oct 2013 06:26 PM
The player GUI gets reset on spawn anyway.

It's easy to "disable" this. When the player dies clone the PlayerGui to somewhere then re-parent it to the player after they respawned.
Report Abuse
Sorcus is not online. Sorcus
Forum Moderator
Joined: 29 Nov 2010
Total Posts: 3775
29 Oct 2013 06:39 PM
This allows for persistent local scripts. I am not proud of the property name (considering I named it) but it's extremely useful so that my GUIs aren't being recreated everytime you die.

And IamAwesome777 is wrong. If you reparent and then parent back means, a server script has to watch over Player's playerguis and reparent them. Additionally, your local gui's have to be smart enough to adjust since they will be restarted and maintain state. This is not easy.

~Sorcus
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
29 Oct 2013 07:09 PM
Ooh, this could be quite useful. Actually I already know something I could apply this to right now.

~The alpaca of the acting world.
Report Abuse
Xeptix is not online. Xeptix
Joined: 14 Mar 2013
Total Posts: 1115
29 Oct 2013 07:11 PM
And this means your LocalScripts will not restart either?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
29 Oct 2013 07:20 PM
Well this is simpler than what I was doing (Creating a script that parents itself to nil when you originally spawn, cloned from ServerStorage when you enter in a Backpack, which then clones a GUI from ReplicatedStorage and unparents it before you respawn and reparents it after you respawn). But what is it a property OF?
Report Abuse
Xeptix is not online. Xeptix
Joined: 14 Mar 2013
Total Posts: 1115
29 Oct 2013 07:21 PM
^ StarterGui in a localscript
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
29 Oct 2013 07:22 PM
^ Xeptix: Thanks. I just found it. I was hoping for this for ages, although I agree; it has a stupid name.
Report Abuse
um3k is not online. um3k
Joined: 28 Feb 2008
Total Posts: 189
29 Oct 2013 08:20 PM
I like how it just keeps adding more HealthGUIs.
Report Abuse
uyjulian is not online. uyjulian
Joined: 29 Nov 2012
Total Posts: 1214
29 Oct 2013 08:40 PM
apparently we need to manually clear out the health guis.
Report Abuse
18cwatford is not online. 18cwatford
Joined: 08 Oct 2009
Total Posts: 5410
29 Oct 2013 08:47 PM
"I like how it just keeps adding more HealthGUIs."
>health gui script is in player
>health gui is planned to be moved to coregui
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