Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local players = game.Players
- local t = 5
- players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- local humanoid = character:WaitForChild("Humanoid")
- humanoid.Died:Connect(function(died)
- player.PlayerGui:FindFirstChild("DeathGui"):WaitForChild("Frame").Visible = true
- for i = t,0, -1 do
- player.PlayerGui:FindFirstChild("DeathGui").Frame.Timer.Text = "Rewspawning in "..i
- wait(1)
- end
- player.PlayerGui:FindFirstChild("DeathGui"):WaitForChild("Frame").Visible = false
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement