Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Make A GUI That Opens When You Die?

Asked by
jacobwow 140
10 years ago

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?

2 answers

Log in to vote
0
Answered by
HexC3D 830 Moderation Voter
10 years ago
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)

Ad
Log in to vote
0
Answered by 10 years ago
function die()
game.Players.Player.Humanoid.MaxHealth = 0
    then
game.Workspace.GUINAME = game.StarterGui
wait(3)
game.Startergui.GUINAME = game.Workspace
die()
0
if doesnt rblx message me. IPlayOnline -2 — 10y

Answer this question