About The Death Screen
Its a simple gui that appear when the player die and disappear when he respawn
Setting it up
The Gui:
The Gui Properties:
The Frame:
The Frame Properties:
Scripts
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)