I tried using the Humanoid.Died script as a test but it didn't work. I used the one posted here which was
game:GetService('Players').PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character:WaitForChild("Humanoid").Died:Connect(function() print(player.Name .. " has died!") end) end) end)
is there something i'm missing? I'm new to scripting so forgive me if I do something wrong. I tried this script in StarterCharacterScripts and StarterPlayerScripts
The issue is that you're putting the script into StarterCharacterScripts
& StarterPlayerScripts
.
I suggest placing the script either into Workspace
or ServerScriptService
.
Other than that, I can't seem to find an issue.
I mean if you're copypasting the code that Roblox themselves provided, it's probably just that you are placing it in the wrong thing.