Jump to content

Recommended Posts

Posted

Hey all!
Haven't made a post here in a while.

I just wanted to say that I was looking for a Lifesteal skript. One that enables you to give hearts (but not if you have 0). You also can't die, when you get to one heart you stay at one heart and that heart isn't given to anyone when killed. I would appreciate this soso much.

 

Thank you,
UhTrevor

Hello! I am Trevor

u may see me from time to time but i'm not very active here anymore...

i joined in like 2019 i think

@tripph on discord

i was helper a while ago 😛

Posted

You could probably try this:

on death:
 if victim's max health is greater than 1:
  remove 1 from victim's max health
  add 1 to attacker's max health

try this if you only want players to give hearts:

on death:
 if victim's max health is greater than 1:
  if victim is player:
   remove 1 from victim's max health
   add 1 to attacker's max health

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...