local FirstTime = {}
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
if FirstTime[Player.UserId] == nil then
FirstTime[Player.UserId] = true
Player.Character.Humanoid.Health = 0
end
end)
end)
game.Players.PlayerAdded:Connect(function(Player)
FirstTime[Player.UserId] = nil
end)
this code basically sets the players health to 0 but for some reason humanoid does not die and health goes up.

2 comments
Why do you have 2 different connections to Players.PlayerAdded??
I think he made a typo, maybe he wanted to put .PlayerRemoving.