Death counter only works for 1 player in the server

I am assuming you haven’t tried this one?


local counter = 0
humanoid.Died:Connect(function()
    counter = counter + 1
end)

Credits to this awesome dude: How to make a death counter - #4 by AbandonedRick

His name is @Wqund