How to make a quick Death Screen

About The Death Screen

Its a simple gui that appear when the player die and disappear when he respawn

Setting it up

The Gui:
image
The Gui Properties:
image

The Frame:
image
The Frame Properties:
image

Scripts

image

repeat wait() until game.Players.LocalPlayer.Character --Wait for the player character
repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") --wait for the player humanoid

local humanoid = game.Players.LocalPlayer.Character.Humanoid --player humanoid

local DeathMess = { 
	"You Died Try Again",
	"You Died",
	"Try Again"
} --Death Randome Messeges

humanoid.Died:Connect(function()	--Detect if the player died
	script.Parent.DeathScreen.Visible = true --Turn the frame visible to on
	script.Parent.DeathScreen.TextLabel.Text = DeathMess[math.random(1, #DeathMess)] --Pick a random Messege
end)

GIF

27 Likes

Awesome are you able to make a sound value for this script?

yeah i can its not a hard think to do

Thanks for making this!
The GIF doesn’t work.

Nice GIF bro. It is now PNGIF. :grin: However, I am definetly gonna use this

yea the gif is so short thats why it doesn’t work

You should make it longer. :smiley:

yea i will make the gif longer in the other tutorials i am gonna post

1 Like