Hey noob to scripting here... Wondering if there's any way I can do an if statement when a player dies. Thanks!
✓ ANSWER ACCEPTED
How do I check if a local player dies?
1 answer
✓ Accepted answer
local Player = game.Players.LocalPlayer
Player.Character.Humanoid.Died:connect(function()
print(Player.Name .. 'Has died!')
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Considering you're new, it's best to learn Filtering Enabled. Don't waste your time trying to learn unfiltering enabled code. When it comes to the time you want to make a game for everyone to play you need to learn it.
That did not work I'm trying to make a gui pop up when that happens and nothing happens.
well obv its in a server script...