Why is CharacterRemoving not working

Why does my CharacterRemoving not activate at all?

Players.PlayerAdded:Connect(function(Player)
print("Player Joined")

Player.CharacterRemoving:Connect(function(Char)
	print("Character is being removed")
end)

Player.CharacterAdded:Connect(function(Char)
	print(Char.Name .. " has joined with " .. Char.Humanoid.Health .. " hp")
end)

end)

I’ve used this many times but for some reason this just doesn’t activate this time around. Character Added works perfectly just not removing

1 Like

Try doing Player.Character.Humanoid.Died instead.

I tried this and it doesnt work

The Died event only fires when the character resets or dies.

Thats what im trying to trigger here, nothing will happen on both removing and died

try this, you script was not formated right:

local players = game.Players

players.PlayerAdded:Connect(function(Player)
	print("Player Joined")

	Player.CharacterRemoving:Connect(function(Char)
		print("Character is being removed")
	end)

	Player.CharacterAdded:Connect(function(Char)
		print(Char.Name .. " has joined with " .. Char.Humanoid.Health .. " hp")
	end)
end)