I think i got something wrong. I put this local script into Players but it's not working. No errors in the output.
local Players = game:GetService('Players')
local Player = Players.LocalPlayer
local humanoid = Player:WaitForChild("Humanoid")
humanoid.Died:Connect(function()
Player:Kick("you died")
end)
