I need help finding information about a player on death

I’m trying to make a PVP game that is based on levels but I do not know how to make a person level up if a person is above or equal to the level they are at. Is there a function or any way so I can detect the player’s level on death and make the killer level up or not level up based on the level?

It detects if a player dies

Put this script to StarterCharacterScripts

local Humanoid = script.Parent.Humanoid

	print(Humanoid.Parent.Name, "Died")