I am making a death screen and i want it to be able to tell when they have reset or been killed by gunfire is there a way for my script to tell if they have reset?
✓ ANSWER ACCEPTED
I want my script to tell if someone has reset?
1 answer
✓ Accepted answer
For a death screen, surely you'd want it to appear for any cause of death, not merely resetting? In which case you can use humanoid.Died:
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local deathScreenGui = -- index your GUI
humanoid.Died:Connect(function()
deathScreenGui.Enabled = true
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I'm on phone but take a look at this: https://devforum.roblox.com/t/customizable-reset-button-logic/30463