I need the script. I need this for my death screen system.
1 Like
You can use Humanoid.Died for that (an event).
If it’s for something simple, I’d recommend using:
Humanoid.Died:Wait()
4 Likes
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
print(player.Name .. " has died!")
end)
end)
This is taken directly from the Roblox Devhub Humanoid | Roblox Creator Documentation
6 Likes
A very simple and effective method would be the: Humanoid.Died
event!
1 Like