The name of my leaderstats is "Deaths".
this is the leaderstats script:
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
local lead = Instance.new("Folder")
lead.Name = "leaderstats"
lead.Parent = player
local deaths = Instance.new("IntValue")
deaths.Name = "Deaths"
deaths.Parent = lead
player.CharacterAdded:Connect(function(character)
local hum = character:FindFirstChild("Humanoid")
hum.Died:Connect(function()
deaths.Value = deaths.Value +1
end)
end)
end)

6 comments
I think instead this made everyone's leaderstats stay that same value, where am I supposed to put the script? (sorry, I am new to scripting)
Ok, maybe just give me thee stats script by editing you question real quick and then il modify it. You will paste the script inside the stats script. And no, it does for a certain player since it check the player's name
Sorry for the spelling mistakes. I was typing a bit fast, lol
Ok, I have updated the question, you can find the stats script there
edited my answer
thank you, I think it quite worked..I'll post another comment if I have any troubles