If player's health

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
if some1 is damaged and he is on half a heart he would get healed and then damaged(or not damaged)
every seconds it loops all of the players and if loop-player is on half a heart it would heal him
 
Code:
on damage:
  victim is a player:
    victim is on 0.5 hearts:
      set {_damage} to damage
      cancel event
      heal victim
      damage victim by {_damage}
      send "&aYou got saved" to victim
[doublepost=1603874336,1603871314][/doublepost]also did you release the server already?
 
Code:
set {_health} to health of victim
if {_health} is 0.5:
 
Last edited:
Code:
set {spawn.location}'s yaw to 100(idk the number you need to test)
teleport player to {spawn.location}
 
Code:
set {spawn}'s yaw to 90
teleport player to {spawn}
i tried doing it and it worked
 
Status
Not open for further replies.