Hi guys.
So I'm having this terribly annoying issue and I can't find a fix.
When a player dies, I want the script to print a simple string "Died!". However, when the player dies the script just seems to not care and looks the other way. No prints, no errors, nothing!
The funny thing however; when I manually set my Health to 0 in the Humanoid (Workspace > PlayerName > Humanoid), the function DOES fire.
I'm using a server-sided script in ServerScriptService, with the following code; (Has been shortened for simple reading, I made sure no parts are missing.
function died() print("Died!") end game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() died() end) end) end)
Any ideas??