Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plrs = game.Players
- plrs.CharacterAutoLoads = false
- local respawnTime = 5
- plrs.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- char:FindFirstChild("Humanoid").Died:Connect(function()
- plr.PlayerGui.RespawnGui.Background.RespawnTime.Text = "Respawning in " .. respawnTime .. " seconds..."
- plr.PlayerGui.RespawnGui.Background.Visible = true
- for i = respawnTime, 0, -1 do
- plr.PlayerGui.RespawnGui.Background.RespawnTime.Text = "Respawning in " .. i .. " seconds..."
- wait(1)
- end
- plr.PlayerGui.RespawnGui.Background.Visible = false
- plr:LoadCharacter()
- end)
- end)
- plr:LoadCharacter()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement