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
 

Allow creation of the PlayerGui object

Previous Thread :: Next Thread 
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Sep 2013 12:43 PM
yay

Game.Players.cntkillme.PlayerGui:Clone().Parent=Game.Lighting
yay
Game.Lighting.PlayerGui:Clone().Parent=Game.Players.cntkillme
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
07 Sep 2013 12:50 PM
or

game.Players.PlayerAdded:connect(function(player)
player.CharacterRemoving:connect(function(chr)
guiholder = Instance.new("Model", game.Lighting)
guiholder.Name = player.Name.."GuiHolder"

for _,v in pairs (player.PlayerGui:GetChildren()) do
v.Parent = guiholder
end
end)

player.CharacterAdded:connect(function(chr)
guiholder = game.Lighting:findFirstChild(player.Name.."GuiHolder")

if guiholder ~= nil then
for _,v in pairs (guiholder:GetChildren()) do
v.Parent = player.PlayerGui
end
end
end)
Report Abuse
dekkonot is not online. dekkonot
Joined: 22 Dec 2010
Total Posts: 6685
07 Sep 2013 12:56 PM
Or you can pay attention to other's complaints about that method and do it correctly.

~ Linguam latinam est optimum ~
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
07 Sep 2013 01:03 PM
mac just put your localscripts in the player, not the backpack/playergui and it will be solved
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
07 Sep 2013 01:04 PM
nvm
Report Abuse
StudioTM is not online. StudioTM
Joined: 06 May 2013
Total Posts: 3454
07 Sep 2013 02:13 PM
YEGGOR, Get out.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Sep 2013 02:14 PM
yeggor is stupid if you ask me.
Report Abuse
ihaveamac is not online. ihaveamac
Joined: 27 Jan 2009
Total Posts: 7511
08 Sep 2013 01:47 AM
I need to put my scripts in a place where they will run without being reset upon death. Putting them in Lighting, Player, or another place won't cut it because the LocalScripts stop running.

Allowing PlayerGui creation is an easier method.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
08 Sep 2013 02:08 AM
LISTEN DAMN IT

ResetPlayerGuiOnDeath is already functional
No need to create PlayerGui objects
Report Abuse
ihaveamac is not online. ihaveamac
Joined: 27 Jan 2009
Total Posts: 7511
08 Sep 2013 02:25 AM
@ResetPlayerGuiOnDeath then where is it?
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
08 Sep 2013 02:29 AM
http://wiki.roblox.com/index.php/Class_reference/API_dump

it's hidden and robloxsecurity locked obviously, but it works; i tested it
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
08 Sep 2013 02:42 AM
Proof?

prntscr/1q0wwq
Report Abuse
ihaveamac is not online. ihaveamac
Joined: 27 Jan 2009
Total Posts: 7511
08 Sep 2013 03:13 AM
well...it's locked, so of course that can't be used.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
08 Sep 2013 03:21 AM
It won't be locked soon :D
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
08 Sep 2013 03:53 AM
IIRC there's a property in StarterGui coming soon called somewhere along the lines of "ResetPlayerGuiOnDeath".
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2013 05:04 AM
@ninjakid

u late bro
Report Abuse
ihaveamac is not online. ihaveamac
Joined: 27 Jan 2009
Total Posts: 7511
08 Sep 2013 03:56 PM
"coming soon"
how long has it existed?
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
08 Sep 2013 03:58 PM
For at least one and a half weeks
Report Abuse
ihaveamac is not online. ihaveamac
Joined: 27 Jan 2009
Total Posts: 7511
09 Sep 2013 06:18 PM
quick bump
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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