Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Wait until a player respawns after death?

Asked by 8 years ago

How would I make a script wait until a player respawns after said player has died? I know to use the died event to detect death, but what about detecting respawning?

1 answer

Log in to vote
0
Answered by 8 years ago

Why don't you use a different event like CharacterAdded which fires when the Character Spawns or Respawns?

game.Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:connect(function(Character)
        --Code
    end)
end)

~UserOnly16Charcters, Hoped I helped you to answer your question! If you have any further question, don't hesitate to comment below!!

0
Thanks! You helped a lot. antonio6643 426 — 8y
Ad

Answer this question