I do not want all GUI's to stay on the user's screen after they respawn.
Only a specific one and that one only.
It's possible by certain admin commands, I just don't know how since source code is hidden behind the module.
So far, I found the admin commands http://www.roblox.com/games/176003675/Kohls-Admin-Testing-Place
Joining the game and trying to make the gui go away won't work, and inserting the admin commands into a game, and the game still having game.StarterGui.ResetGuisOnRespawn is still false, the GUI's still stay on screen..
So far, I have came up with this..
if script.Parent and script.Parent:findFirstChild("Locked")==nil and script.Parent.ClassName=="ScreenGui" then function UnArchive(p) pcall(function() p.Archivable=false; end) pcall(function() for i,v in ipairs(p:GetChildren()) do UnArchive(v) end end) end function TransferAll(mainlocation,item) pcall(function() print(item.Name.." : "..item:getFullName()) item.Parent=mainlocation end) pcall(function() for i,v in ipairs(item:GetChildren()) do TransferAll(item,v) end end) end local lock=Instance.new("StringValue",script.Parent) lock.Name="Locked" local gui=script.Parent UnArchive(gui) script.Parent=nil local me=script.Parent function AlwaysChecking() for a=1,25 do print("Checking "..gui:GetFullName()) if gui.Parent~=game.Players.LocalPlayer.PlayerGui then TransferAll(game.Players.LocalPlayer.PlayerGui,gui) --gui.Parent=game.Players.LocalPlayer.PlayerGui end wait(.1) end end gui.Changed:connect(function() print("Fired") AlwaysChecking() end) gui.AncestryChanged:connect(function() print("Fired2") AlwaysChecking() end) end
A nasty loop to make sure it stays in it's original parent, and then when I do want to remove it, simply disable this script, and delete the GUI. However, I know there's a simpler option, and I would still like help. PS. Thanks for the downvote whoever you are.
Simply keep the transparency of the Frame of your GUI or the TextLabel or whatever it may be you're using to 0. That will stay. Edit this however you need:
local gui1 = game.StarterGUI.ScreenGUI1.Frame.Texbutton -- Gui that doesn't stay on screen local gui2 = game.StarterGUI.ScreenGUI2.Frame.Textbutton -- Gui that doesn't stay on screen local gui2 = game.StarterGUI.ScreenGUI2.Frame.Textbutton -- Gui that stays on screen game.Players.PlayerAdded:connect(function(player) gui1.Transparency = 0 gui2.Transparency = 0 gui3.Transparency = 0 end) if player.Humanoid.Health == 0 then gui1.Transparency = 1 gui2.Transparency = 1 gui3.Transparency = 0 end
If this was not what you're looking for please contact me and I can help you out further.
There is an option in ROBLOX Studio that still keeps the player's GUI on death. In ROBLOX Studio, click StarterGUI and find the option that says "ResetPlayerGuiOnSpawn". Disable it and the GUI's will still stay on screen. No code needed for that. Here's a screenshot