Kill player for regen (Without Leaderboard.)

I need it so If a player kills another player the player that killed this player would gain, lets say 25 hp.

I have only a little bit of clue on how to do this. I really need help, its a key part in my game. I am only a mediocre scripter and don’t know how to do this.

I’ve searched for this for a while and I only found one response which didn’t make much sense to me, I need some help desperately lol.

The same code as I sent to you should work. It’s without a leaderstats.
Just make sure to put it inside a PlayerAdded event.

player.CharacterAdded:Connect(function(char)
		char.Humanoid.Died:Connect(function(Died) --fires whenever the player dies
			local creator = char.Humanoid:FindFirstChild("creator") --looking for who killed him
			local leaderstats = creator.Value:FindFirstChild("leaderstats")
			if creator~=nil and creator.Value ~= nil then
                game.Workspace:FindFirstChild(creator).Humanoid.MaxHealth += 25
				game.Workspace:FindFirstChild(creator).Humanoid.Health += 25
			end	
		end)
	end)

Connect this to a PlayerAdded event

This?

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.Died:Connect(function(Died) --fires whenever the player dies
local creator = char.Humanoid:FindFirstChild(“creator”) --looking for who killed him
local leaderstats = creator.Value:FindFirstChild(“leaderstats”)
if creator~=nil and creator.Value ~= nil then
game.Workspace:FindFirstChild(creator).Humanoid.MaxHealth += 25
game.Workspace:FindFirstChild(creator).Humanoid.Health += 25
end
end)
end)
end)