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: PlayerGui Persistence

Previous Thread :: Next Thread 
Djmann1013 is not online. Djmann1013
Joined: 17 Apr 2009
Total Posts: 1606
03 May 2015 11:29 AM
How would I make a Gui persistafter the user resets if the Gui is inserted by a script into the PlayerGui?

So far, I've tried writing a temporary code that doesn't work. Besides re-inserting the Gui, is there something similar to Startpack for Guis?

Here's the code that doesn't work:

local gui = game.Lighting:FindFirstChild("FaceChangerGui")
local player = game.Players.LocalPlayer.Name

while true do
wait(1)
print(player)
if game.Players:findFirstChild(player).IsVip ~= nil then
if game.Players:findFirstChild(player).IsVip == true then
-- Give them the Gui
gui:Clone().Parent = game.Players:findFirstChild(player).PlayerGui
end
end
end

Is there a better way without inserting it into StarterGui (which will give it to everyone)?
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
03 May 2015 11:35 AM
http://wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn
Report Abuse
Djmann1013 is not online. Djmann1013
Joined: 17 Apr 2009
Total Posts: 1606
03 May 2015 11:43 AM
Solved my problem, thanks!
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