How i can start event wen player Resate The Character

like if the Player resat make the value false

Only if player reset or if player oofed?

1 Like

if the player resat or The Humanoid.Health = 0

You can listen for the Humanoid.Died event, it fires when the humanoid of the character dies. Here’s a code example:

local Player = ...
local Character = Player.Character;
local Humanoid = Character:WaitForChild("Humanoid");
local toChangeVal = ...

Humanoid.Died:Connect(function()
   toChangeVal.Value = false;
end);
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.