Advertisement
MandB

Death Screen

Aug 19th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. local players = game.Players
  2. local t = 5
  3.  
  4. players.PlayerAdded:Connect(function(player)
  5. player.CharacterAdded:Connect(function(character)
  6. local humanoid = character:WaitForChild("Humanoid")
  7.  
  8. humanoid.Died:Connect(function(died)
  9. player.PlayerGui:FindFirstChild("DeathGui"):WaitForChild("Frame").Visible = true
  10.  
  11. for i = t,0, -1 do
  12. player.PlayerGui:FindFirstChild("DeathGui").Frame.Timer.Text = "Rewspawning in "..i
  13. wait(1)
  14. end
  15. player.PlayerGui:FindFirstChild("DeathGui"):WaitForChild("Frame").Visible = false
  16. end)
  17. end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement