Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Humanoid.Died is not firing at all?

Asked by 5 years ago

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)

0
Did you check the Output? INOOBE_YT 387 — 5y
0
yo specify some more informations pl0x INOOBE_YT 387 — 5y
0
What other information do you need? ZenerFox 0 — 5y
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. saenae 318 — 5y
View all comments (6 more)
0
Still does not work and there are still nothing about the script. ZenerFox 0 — 5y
0
I used the example and read the page but still not working. ZenerFox 0 — 5y
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. ZenerFox 0 — 5y
0
It's not dumb but ok. User#19524 175 — 5y
0
Put wait(2) after the characteradded function Geobloxia 251 — 4y

Answer this question