How to make a lifesteal game?

How would I make a lifesteal game where when you kill someone you get more health and the opposite happens when you die.

1 Like

I can’t exactly help you program such a system. However with a bit of tinkering, I’m sure you can get it to work using humanoids:

Humanoids - This will help to change the player’s health, and also check when a player dies using the Humanoid.Died signal.

Would I have to detect what you get a kill with? could you put the code or some parts of it?

You need to use ObjectValues.

local Humanoid:Humanoid?
Humanoid.Died:Connect(function()
	local Killer:Player? = Humanoid:FindFirstChild("Killer").Value
	local KillerCharacter = Killer.Character
	KillerCharacter.Humanoid.Health += Humanoid.MaxHealth
end)

is this the full code? I dont know how to do this.

If if doesnt bother you could you share a working lifesteal game with me? ill give you 100 robux.

I don’t know why people don’t search in google or anything that have search engine there is tons of tutorials out there, Here a link of video How to make kill and death leaderstats.