|
| 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 |
|
|
| 03 May 2015 11:35 AM |
| http://wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn |
|
|
| Report Abuse |
|
|
| 03 May 2015 11:43 AM |
| Solved my problem, thanks! |
|
|
| Report Abuse |
|