For some reason, Humanoid.Died isn't firing for me. I used my own way and Roblox's example. And I have tried Script and LocalScript.

Code: ` game.Players.PlayerAdded:Connect(function(player)

player.CharacterAdded:connect(function(character)
	character:WaitForChild("Humanoid").Died:connect(function()
		print(player.Name .. " has died!")
	end)
end)

end) `

There are no errors when I die or reset. (Sorry if my grammar is bad)

10 comments

0

Did you check the Output?

0

yo specify some more informations pl0x

0

What other information do you need?

0

This happens rarely to me, but there's a chance that in studio you might spawn before the script has executed. (This happens typically if you have a WaitForChild earlier in your script). That would cause the PlayerAdded event to not fire. In a localscript, replace the PlayerAdded with local player = game.Players.LocalPlayer, and see if it works.

0

Still does not work and there are still nothing about the script.

0

I used the example and read the page but still not working.

0

Nevermind, so apparently when roblox studio updated, it started requiring ":Connect" to be capital. I find that dumb but now it's working. Thank you so much! I had this problem for so long.

0

It's not dumb but ok.

0

Put wait(2) after the characteradded function