Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ 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.

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()

1 comment

0

if doesnt rblx message me.

This discussion is preserved as it was. New answers, comments, and votes are closed.