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?
✓ ANSWER ACCEPTED
How Do I Make A GUI That Opens When You Die?
2 answers
✓ Accepted answer
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.
function die()
game.Players.Player.Humanoid.MaxHealth = 0
then
game.Workspace.GUINAME = game.StarterGui
wait(3)
game.Startergui.GUINAME = game.Workspace
die()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
if doesnt rblx message me.