Like when you die it will say "your character was killed by ..." or "Game over"
COMMUNITY QUESTION
How do uou make death screen?
1 answer
Hello, Tizzel40!
This script does exactaly what you want to do!
local KillMessage = "Game Over!"
while not game.Players.LocalPlayer.Character do wait() end
game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Died:connect(function()
local Gui = Instance.new("ScreenGui")
Gui.Parent = game.Players.LocalPlayer.PlayerGui
local Label = Instance.new("TextLabel")
Label.Parent = Gui
Label.Size = UDim2.new(1,0,1,0)
Label.TextScaled = true
Label.Text = KillMessage
Label.BackgroundTransparency = 1
end)
Good Luck with your games!
This discussion is preserved as it was. New answers, comments, and votes are closed.
