So Its a script in an image label in a GUI in the starter GUI folder and I want to make the GUI disappear when I click it and appear when I die. How do I do that?
game.Players.PlayerAdded:connect(function(plr) player.CharacterAdded:connect(function(chr) chr:WaitForChild("Humanoid").Died:connect(function() plr:WaitForChild("PlayerGui").ScreenGui.Frame.Visible = true end) end) end)
I guess that could work.. But look at this first.
http://wiki.roblox.com/index.php/Died_(Event)
function die() game.Players.Player.Humanoid.MaxHealth = 0 then game.Workspace.GUINAME = game.StarterGui wait(3) game.Startergui.GUINAME = game.Workspace die()