Humanoid.Died event work only once in client?

Hi Devs, i got this problem and i don’t know how to solve it, cuz when im using humanoid.died event in server it works pretty well but in client seems got an issue it will only work once heres the code:

local Players = game:GetService("Players")
local ClientPlayer = Players.LocalPlayer
local Character = ClientPlayer.Character or ClientPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")


Humanoid.Died:Connect(function()
	print("Client Humanoid Got Died")
end)

Could you show the explorer of where you put the script?

Its in the StarterPlayerScript, wait do i need to put it on StarterCharacterScript?

You should put it in StarterCharacterScripts so it runs every time the character spawns.

the humanoid resets, if you’re doing it in the client you would have to use the CharacterAdded event to replace the Character value

omg it works thank you so much :smiley:

1 Like

No problem. If you have any more questions, feel free to ask.

1 Like

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