Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I check if a local player dies?

Hey noob to scripting here... Wondering if there's any way I can do an if statement when a player dies. Thanks!

1 answer

✓ Accepted answer
local Player = game.Players.LocalPlayer

Player.Character.Humanoid.Died:connect(function()
	print(Player.Name .. 'Has died!')
end)

3 comments

0

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.

0

That did not work I'm trying to make a gui pop up when that happens and nothing happens.

0

well obv its in a server script...

This discussion is preserved as it was. New answers, comments, and votes are closed.